mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
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
1 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,7 @@ do_configure() {
|
||||||
_args+=" --with-isl=${XBPS_MASTERDIR}/usr"
|
_args+=" --with-isl=${XBPS_MASTERDIR}/usr"
|
||||||
_args+=" --with-mpc=${XBPS_MASTERDIR}/usr"
|
_args+=" --with-mpc=${XBPS_MASTERDIR}/usr"
|
||||||
_args+=" --with-cloog=${XBPS_MASTERDIR}/usr"
|
_args+=" --with-cloog=${XBPS_MASTERDIR}/usr"
|
||||||
|
_args+=" --build=${_triplet}"
|
||||||
else
|
else
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
# XXX disable go and java with musl
|
# XXX disable go and java with musl
|
||||||
|
@ -148,6 +149,7 @@ do_configure() {
|
||||||
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
|
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
|
||||||
export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
|
export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
|
||||||
|
|
||||||
|
echo $_args
|
||||||
CONFIG_SHELL=/bin/bash \
|
CONFIG_SHELL=/bin/bash \
|
||||||
./configure --prefix=/usr --mandir=/usr/share/man \
|
./configure --prefix=/usr --mandir=/usr/share/man \
|
||||||
--infodir=/usr/share/info --libexecdir=/usr/lib --libdir=/usr/lib \
|
--infodir=/usr/share/info --libexecdir=/usr/lib --libdir=/usr/lib \
|
||||||
|
|
Loading…
Add table
Reference in a new issue