File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,15 +16,26 @@ tar -xzf gcc-$GCC_VERSION.tar.gz
1616rm binutils-$BINUTILS_VERSION .tar.gz
1717rm gcc-$GCC_VERSION .tar.gz
1818
19- cd binutils-$BINUTILS_VERSION
20- ./configure --target=$TARGET --prefix=" $PREFIX " --with-sysroot --disable-nls --disable-werror
19+ mkdir build-binutils
20+ cd build-binutils
21+
22+ ../binutils-$BINUTILS_VERSION /configure --target=$TARGET --prefix=" $PREFIX " --with-sysroot --disable-nls --disable-werror
2123make
2224make install
2325
2426cd ../
2527
26- which -- $TARGET -as || echo $TARGET -as is not in the PATH
27- cd gcc-$GCC_VERSION
28- ./configure --target=$TARGET --prefix=" $PREFIX " --disable-nls --enable-languages=c,c++ --without-headers
28+ mkdir build-gcc
29+ cd build-gcc
30+
31+ ../gcc-$GCC_VERSION /configure --target=$TARGET --prefix=" $PREFIX " --disable-nls --enable-languages=c,c++ --without-headers
2932make all-gcc
33+ make all-target-libgcc
3034make install-gcc
35+ make install-target-libgcc
36+
37+ cd ../../
38+
39+ $HOME /opt/cross/bin/$TARGET -gcc --version
40+
41+
You can’t perform that action at this time.
0 commit comments