Skip to content

Commit 4da7563

Browse files
committed
Fixed support for lgcc
1 parent bdb1622 commit 4da7563

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

CCBuild.sh

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,26 @@ tar -xzf gcc-$GCC_VERSION.tar.gz
1616
rm binutils-$BINUTILS_VERSION.tar.gz
1717
rm 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
2123
make
2224
make install
2325

2426
cd ../
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
2932
make all-gcc
33+
make all-target-libgcc
3034
make install-gcc
35+
make install-target-libgcc
36+
37+
cd ../../
38+
39+
$HOME/opt/cross/bin/$TARGET-gcc --version
40+
41+

0 commit comments

Comments
 (0)