gcc: fully installable in chroot this time, for real.
This commit is contained in:
parent
5ca9f16055
commit
6968a72be6
1 changed files with 6 additions and 9 deletions
|
@ -53,27 +53,23 @@ if [ -n "$BOOTSTRAP_PKG_REBUILD" ]; then
|
|||
Add_dependency build sed
|
||||
Add_dependency build texinfo
|
||||
Add_dependency build gettext
|
||||
Add_dependency build flex
|
||||
fi
|
||||
|
||||
do_build()
|
||||
{
|
||||
local BPATH
|
||||
|
||||
if [ -n "$BOOTSTRAP_PKG_REBUILD" ]; then
|
||||
BPATH="/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin"
|
||||
BPATH="$BPATH:/usr/local/bin:/tools/bin"
|
||||
else
|
||||
BPATH=$PATH
|
||||
unset LD_LIBRARY_PATH LDLIBPATH LDFLAGS CPPFLAGS
|
||||
local SAVEDPATH=$PATH
|
||||
export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
|
||||
fi
|
||||
|
||||
# As specified in the LFS book, disable installing libiberty.
|
||||
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
|
||||
# "Add" ppl-0.11 compatibility
|
||||
sed -i "/ppl_minor_version=/s#10#11#" configure
|
||||
# Do not run fixincludes
|
||||
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
|
||||
|
||||
PATH=$BPATH ./configure --prefix=/usr \
|
||||
./configure ${CONFIGURE_SHARED_ARGS} \
|
||||
--enable-clocale=gnu --disable-bootstrap \
|
||||
--enable-threads=posix --enable-__cxa_atexit --disable-multilib \
|
||||
--enable-languages=c,c++,objc,obj-c++,fortran,go,lto --enable-tls \
|
||||
|
@ -85,6 +81,7 @@ do_build()
|
|||
--enable-checking=release
|
||||
|
||||
make ${makejobs}
|
||||
[ -n "$BOOTSTRAP_PKG_REBUILD" ] && export PATH=$SAVEDPATH
|
||||
}
|
||||
|
||||
do_install()
|
||||
|
|
Loading…
Reference in a new issue