summaryrefslogtreecommitdiffstats
path: root/http
diff options
context:
space:
mode:
authorIsmael Luceno2019-08-26 23:30:02 +0200
committerIsmael Luceno2019-08-26 23:30:02 +0200
commit891c1133185904d88b6b4bb624704fdfaac70c8e (patch)
treeda47c193f320c8119f85f83a0d04424705e6ff29 /http
parent9c423c81e100748eafee6fc67060293c9b6d97f4 (diff)
firefox: Disable jemalloc, gold and elf-hack for musl
Diffstat (limited to 'http')
-rw-r--r--http/firefox/HISTORY1
-rwxr-xr-xhttp/firefox/PRE_BUILD14
2 files changed, 14 insertions, 1 deletions
diff --git a/http/firefox/HISTORY b/http/firefox/HISTORY
index ea02f408bd..cde23936ce 100644
--- a/http/firefox/HISTORY
+++ b/http/firefox/HISTORY
@@ -4,6 +4,7 @@
Added missing dependency on libnotify
* PRE_BUILD: Improved build times when stripping
Explicitly disable profiling if not doing PGO
+ Disabled jemalloc, gold and elf-hack for musl
2019-08-14 Pavel Vinogradov <public@sourcemage.org>
* DETAILS: version 68.0.2, SECURITY_PATCH++, (CVE-2019-11733)
diff --git a/http/firefox/PRE_BUILD b/http/firefox/PRE_BUILD
index 16dee1f83b..3752626ae8 100755
--- a/http/firefox/PRE_BUILD
+++ b/http/firefox/PRE_BUILD
@@ -35,4 +35,16 @@ if [[ $FIREFOX_WIDEVINE == y ]]; then
echo "ac_add_options --enable-eme=widevine" >> .mozconfig
else
echo "ac_add_options --disable-eme" >> .mozconfig
-fi
+fi &&
+
+case "$HOST" in
+*-musl)
+ cat <<-!>>.mozconfig
+ ac_add_options --disable-elf-hack
+ # jemalloc depends on PTHREAD_MUTEX_ADAPTIVE_NP
+ ac_add_options --disable-jemalloc
+ # gold causes build failures
+ ac_add_options --disable-gold
+!
+ ;;
+esac