Seems to build up to last step
This commit is contained in:
parent
dd13f93ea6
commit
ec1cae8ede
1 changed files with 35 additions and 31 deletions
66
build.sh
66
build.sh
|
|
@ -176,6 +176,7 @@ if [ ! -f "$STEPS_DIR/gcc-step1" ]; then
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
--disable-threads \
|
--disable-threads \
|
||||||
--disable-libatomic \
|
--disable-libatomic \
|
||||||
|
--disable-libmudflap \
|
||||||
--disable-libgomp \
|
--disable-libgomp \
|
||||||
--disable-libquadmath \
|
--disable-libquadmath \
|
||||||
--disable-libquadmath-support \
|
--disable-libquadmath-support \
|
||||||
|
|
@ -288,14 +289,14 @@ if [ ! -f "$STEPS_DIR/glibc" ]; then
|
||||||
touch "$STEPS_DIR/glibc"
|
touch "$STEPS_DIR/glibc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#unset CC
|
unset CC
|
||||||
#unset CXX
|
unset CXX
|
||||||
#unset LD
|
unset LD
|
||||||
#unset AS
|
unset AS
|
||||||
#unset AR
|
unset AR
|
||||||
#unset RANLIB
|
unset RANLIB
|
||||||
#unset OBJDUMP
|
unset OBJDUMP
|
||||||
#export LD_LIBRARY_PATH="$LD_LIBRARY_PATH_old"
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH_old"
|
||||||
|
|
||||||
if [ ! -f "$STEPS_DIR/gcc-step2" ]; then
|
if [ ! -f "$STEPS_DIR/gcc-step2" ]; then
|
||||||
#if [ ! -d "$LFS_BUILD/gcc/build" ]; then
|
#if [ ! -d "$LFS_BUILD/gcc/build" ]; then
|
||||||
|
|
@ -309,34 +310,37 @@ if [ ! -f "$STEPS_DIR/gcc-step2" ]; then
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
# ../configure is already done
|
# ../configure is already done
|
||||||
#"../configure" \
|
"../configure" \
|
||||||
# --target=$LFS_TGT \
|
--target=$LFS_TGT \
|
||||||
# --host=$(../config.guess) \
|
--host=$(../config.guess) \
|
||||||
# --build=$(../config.guess) \
|
--build=$(../config.guess) \
|
||||||
# --prefix=$LFS_TOOLS \
|
--prefix=$LFS_TOOLS \
|
||||||
# --with-glibc-version=2.40 \
|
--with-glibc-version=2.40 \
|
||||||
# --with-sysroot=$LFS \
|
--with-sysroot=$LFS \
|
||||||
# --enable-default-pie \
|
--enable-c99 \
|
||||||
# --enable-default-ssp \
|
--enable-long-long \
|
||||||
# --disable-nls \
|
--enable-default-pie \
|
||||||
# --disable-multilib \
|
--enable-default-ssp \
|
||||||
# --disable-libatomic \
|
--disable-nls \
|
||||||
# --disable-libgomp \
|
--disable-multilib \
|
||||||
# --disable-libquadmath \
|
--disable-libatomic \
|
||||||
# --disable-libquadmath-support \
|
--disable-libmudflap \
|
||||||
# --disable-libssp \
|
--disable-libgomp \
|
||||||
# --disable-libvtv \
|
--disable-libquadmath \
|
||||||
# --disable-libstdcxx \
|
--disable-libquadmath-support \
|
||||||
# --disable-decimal-float \
|
--disable-libssp \
|
||||||
# --disable-libsanitizer \
|
--disable-libvtv \
|
||||||
# --enable-languages=c
|
--disable-libstdcxx \
|
||||||
|
--disable-decimal-float \
|
||||||
|
--disable-libsanitizer \
|
||||||
|
--enable-languages=c
|
||||||
|
|
||||||
# Repeat this
|
# Repeat this
|
||||||
#make -j 32 all-gcc
|
#make -j 32 all-gcc
|
||||||
#make -j 32 install-gcc
|
#make -j 32 install-gcc
|
||||||
#exit 0
|
#exit 0
|
||||||
make -j 32 all-target-libgcc # if build fails add --disable-libsanitizer
|
make -j 32 # if build fails add --disable-libsanitizer
|
||||||
make -j 32 install-target-libgcc
|
make -j 32 install
|
||||||
|
|
||||||
cd "$BASE_DIR"
|
cd "$BASE_DIR"
|
||||||
#rm -rf "$LFS_BUILD/gcc/build" # Do not remove the whole gcc directory: we need it for libstdc++
|
#rm -rf "$LFS_BUILD/gcc/build" # Do not remove the whole gcc directory: we need it for libstdc++
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue