From 182f8be5b9eb0fa809e3802bdab8caa5c67c5602 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 30 Apr 2016 15:20:01 +0200 Subject: [PATCH] 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. --- srcpkgs/gcc/template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template index 624acda9732..fa47374a269 100644 --- a/srcpkgs/gcc/template +++ b/srcpkgs/gcc/template @@ -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 \