aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2017-12-31 00:58:13 +0000
committerJan Beich <jbeich@FreeBSD.org>2017-12-31 00:58:13 +0000
commit3deabe42ba74c4231ba951949a872c2441f41865 (patch)
treef38c8d5c2a06e1ecb7bc4f29ba9008a2ea10a06a
parentec1df6222ebcb8a1952506c950dc1e8060105e79 (diff)
downloadports-3deabe42ba74c4231ba951949a872c2441f41865.tar.gz
ports-3deabe42ba74c4231ba951949a872c2441f41865.zip
MFH: r457657
www/firefox: unbreak OPTIMIZED_CFLAGS=off build after r450707 x86_64-unknown-freebsd/release/libgkrust.a: could not read symbols: File format not recognized PR: 222641 Reported by: many Approved by: ports-secteam blanket
Notes
Notes: svn path=/branches/2017Q4/; revision=457658
-rw-r--r--Mk/bsd.gecko.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mk/bsd.gecko.mk b/Mk/bsd.gecko.mk
index 3852eb0d5fad..6e4ef2c53957 100644
--- a/Mk/bsd.gecko.mk
+++ b/Mk/bsd.gecko.mk
@@ -290,6 +290,13 @@ MOZ_EXPORT+= MOZ_OPTIMIZE_FLAGS="${CFLAGS:M-O*}"
MOZ_OPTIONS+= --enable-optimize
.else
MOZ_OPTIONS+= --disable-optimize
+. if ${MOZILLA_VER:R:R} >= 56
+. if ${/usr/bin/ld:L:tA} != "/usr/bin/ld.lld"
+# ld 2.17 barfs on Stylo built with -C opt-level=0
+USE_BINUTILS= yes
+LDFLAGS+= -B${LOCALBASE}/bin
+. endif
+. endif
.endif
.if ${PORT_OPTIONS:MCANBERRA}