File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,13 @@ cd objdir
74
74
PREFIX=` pwd`
75
75
cd -
76
76
77
+ export OLDPATH=" $PATH "
78
+
79
+ # Add to path only if we are not cross compiling
80
+ if [[ x$CROSS_COMPILE == " x" ]]; then
81
+ export PATH=" $PREFIX /bin:$PATH "
82
+ fi
83
+
77
84
mkdir -p avr-libc-build
78
85
cd avr-libc-build
79
86
@@ -84,13 +91,14 @@ CONFARGS=" \
84
91
--libdir=$PREFIX /lib \
85
92
--disable-doc"
86
93
87
- PATH= $PREFIX /bin: $PATH CC=" avr-gcc" CXX=" avr-g++" CFLAGS=" -w -Os $CFLAGS " CXXFLAGS=" -w -Os $CXXFLAGS " LDFLAGS=" -s $LDFLAGS " ../avr-libc/configure $CONFARGS
94
+ CC=" avr-gcc" CXX=" avr-g++" CFLAGS=" -w -Os $CFLAGS " CXXFLAGS=" -w -Os $CXXFLAGS " LDFLAGS=" -s $LDFLAGS " ../avr-libc/configure $CONFARGS
88
95
89
96
if [ -z " $MAKE_JOBS " ]; then
90
97
MAKE_JOBS=" 2"
91
98
fi
92
99
93
- PATH= $PREFIX /bin: $PATH nice -n 10 make -j $MAKE_JOBS
100
+ nice -n 10 make -j $MAKE_JOBS
94
101
95
- PATH= $PREFIX /bin: $PATH make install
102
+ make install
96
103
104
+ export PATH=" $OLDPATH "
You can’t perform that action at this time.
0 commit comments