commit: 94f2fde6329e5f9695d8fc91428a8514d4ce29a3 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> AuthorDate: Wed Jun 8 06:00:16 2016 +0000 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> CommitDate: Fri Jun 10 01:47:29 2016 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=94f2fde6
s/bootstrap-prefix.sh: set CXX to convey LDFLAGS. gmp does not respect LDFLAGS in its configure, should set CXX instead. https://gmplib.org/manual/Known-Build-Problems.html#Known-Build-Problems scripts/bootstrap-prefix.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 1e5393b..a8ec06e 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -1466,8 +1466,11 @@ EOF RAP_DLINKER=$(echo "${ROOT}"/$(get_libdir)/ld*.so.[0-9]) # try to get ourself out of the mudd, bug #575324 + # gmp does not respect LDFLAGS in its configure, should set CXX instead. + # https://gmplib.org/manual/Known-Build-Problems.html#Known-Build-Problems EXTRA_ECONF="--disable-compiler-version-checks $(rapx --disable-lto)" \ LDFLAGS="${LDFLAGS} $(rapx -Wl,--dynamic-linker=${RAP_DLINKER})" \ + CXX="${CHOST}-g++ ${LDFLAGS}" \ emerge_pkgs --nodeps ${compiler} || return 1 # undo libgcc_s.so path of stage2 rm -f "${ROOT}"/etc/ld.so.conf.d/stage2.conf