From a31d1136a260b287451944cbf5c76b32f4992d4f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 12 Jun 2015 12:39:32 +0200 Subject: [PATCH] firefox: disable gold linker on musl to unbreak the build. Looks like the gold linker has issues with --hash-style=sysv|both, and can't hide some symbols that should be hidden with --hash-style=gnu. For now just disable the gold linker until we set ld's hash style to gnu, like alpine and to match our gcc settings. --- srcpkgs/firefox/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index 1a03d3ea649..57777e0a972 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -57,6 +57,13 @@ do_configure() { export ac_cv_sqlite_enable_unlock_notify=yes export ac_cv_prog_hostcxx_works=1 + case "$XBPS_TARGET_MACHINE" in + *-musl) # XXX gold linking with --hash-style=sysv results in unhidden symbols + # XXX see https://sourceware.org/ml/binutils/2014-09/msg00230.html + cross_args+=" --enable-gold=no" + ;; + esac + cd xbps-build SHELL=/bin/bash ../configure --prefix=/usr --libdir=/usr/lib \ --with-system-nspr --with-system-nss --with-system-bz2 \