gcc: pass --build= when bootstrapping.
Else bootstrapping from a musl-based system will be recognized as glibc, and stage0 gcc will write invalid PT_INTERP entries.
This commit is contained in:
parent
efcabea399
commit
182f8be5b9
@ -128,6 +128,7 @@ do_configure() {
|
||||
_args+=" --with-isl=${XBPS_MASTERDIR}/usr"
|
||||
_args+=" --with-mpc=${XBPS_MASTERDIR}/usr"
|
||||
_args+=" --with-cloog=${XBPS_MASTERDIR}/usr"
|
||||
_args+=" --build=${_triplet}"
|
||||
else
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
# XXX disable go and java with musl
|
||||
@ -148,6 +149,7 @@ do_configure() {
|
||||
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
|
||||
export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
|
||||
|
||||
echo $_args
|
||||
CONFIG_SHELL=/bin/bash \
|
||||
./configure --prefix=/usr --mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info --libexecdir=/usr/lib --libdir=/usr/lib \
|
||||
|
Loading…
x
Reference in New Issue
Block a user