mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Fix full toolchain build
This commit is contained in:
@@ -54,7 +54,7 @@ endif
|
||||
else
|
||||
ifeq "$(PASS)" "1"
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools1
|
||||
EXTRA_CONFIG = --prefix=/tools --disable-nls
|
||||
EXTRA_CONFIG = --prefix=/tools --disable-nls --disable-werror
|
||||
EXTRA_MAKE = LDFLAGS="-all-static"
|
||||
EXTRA_INSTALL =
|
||||
else
|
||||
|
||||
@@ -54,11 +54,11 @@ ifeq "$(PASS)" "1"
|
||||
mv -v /tools/i686-pc-linux-gnu/bin/{ld,ld-old}
|
||||
cp -v /tools/bin/{ld-new,ld}
|
||||
ln -sv /tools/bin/ld /tools/i686-pc-linux-gnu/bin/ld
|
||||
gcc -dumpspecs > /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs
|
||||
sed 's@^/lib/ld-linux.so.2@/tools&@g' /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs > tempspecfile
|
||||
mv -vf tempspecfile /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs
|
||||
find /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \;
|
||||
rm -vf `grep -l "DO NOT EDIT THIS FILE" /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/*`
|
||||
gcc -dumpspecs > /tools/lib/gcc/i686-pc-linux-gnu/4.0.4/specs
|
||||
sed 's@^/lib/ld-linux.so.2@/tools&@g' /tools/lib/gcc/i686-pc-linux-gnu/4.0.4/specs > tempspecfile
|
||||
mv -vf tempspecfile /tools/lib/gcc/i686-pc-linux-gnu/4.0.4/specs
|
||||
find /tools/lib/gcc/i686-pc-linux-gnu/4.0.4/include/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \;
|
||||
rm -vf `grep -l "DO NOT EDIT THIS FILE" /tools/lib/gcc/i686-pc-linux-gnu/4.0.4/include/*`
|
||||
endif
|
||||
ifeq "$(PASS)" "2"
|
||||
-strip --strip-debug /tools/lib/*
|
||||
@@ -74,6 +74,6 @@ ifeq "$(PASS)" "3"
|
||||
gcc -dumpspecs | \
|
||||
perl -p -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g;' \
|
||||
-e 's@\*startfile_prefix_spec:\n@$$_/usr/lib/ @g;' > \
|
||||
/tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs
|
||||
/tools/lib/gcc/i686-pc-linux-gnu/4.0.4/specs
|
||||
endif
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user