aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2017-12-31 00:57:06 +0000
committerJan Beich <jbeich@FreeBSD.org>2017-12-31 00:57:06 +0000
commit543bbdecf0c1fec7d87b90983732b89b19b62a29 (patch)
tree8617616a79c31512d5041e365201b716fd0a6e1b /Mk
parent34fc012876f40fe87744671230c311854b48f1c3 (diff)
downloadports-543bbdecf0c1fec7d87b90983732b89b19b62a29.tar.gz
ports-543bbdecf0c1fec7d87b90983732b89b19b62a29.zip
Notes
Diffstat (limited to 'Mk')
-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 bfafacd4399d..2f262ca7c557 100644
--- a/Mk/bsd.gecko.mk
+++ b/Mk/bsd.gecko.mk
@@ -311,6 +311,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}