aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.qt.mk
diff options
context:
space:
mode:
authortcberner <tcberner@FreeBSD.org>2017-06-03 04:03:12 +0800
committertcberner <tcberner@FreeBSD.org>2017-06-03 04:03:12 +0800
commit5eb57d4000796890d6ca808eb6f1a4dc53d2e675 (patch)
tree76324f163b7eb86bec04d48ed51cd55426b1e08c /Mk/bsd.qt.mk
parentb325c0ec3c79ddc3bc35b8a1c0b056848b6d008f (diff)
downloadfreebsd-ports-gnome-5eb57d4000796890d6ca808eb6f1a4dc53d2e675.tar.gz
freebsd-ports-gnome-5eb57d4000796890d6ca808eb6f1a4dc53d2e675.tar.zst
freebsd-ports-gnome-5eb57d4000796890d6ca808eb6f1a4dc53d2e675.zip
Do not use gold linker for Qt5 ports.
gold linker from binutils 2.28 may produce duplicate library symbols, which makes shared libraries created with it not usable with conventional ld linker. PR: 218187 Submitted by: amdmi3
Diffstat (limited to 'Mk/bsd.qt.mk')
-rw-r--r--Mk/bsd.qt.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mk/bsd.qt.mk b/Mk/bsd.qt.mk
index 60e5b0ec6b5a..f1b2e2f44b0e 100644
--- a/Mk/bsd.qt.mk
+++ b/Mk/bsd.qt.mk
@@ -147,7 +147,9 @@ CONFIGURE_ARGS+=-nomake examples -nomake tests \
. if ${ARCH} == i386 && empty(MACHINE_CPU:Msse2)
CONFIGURE_ARGS+=-no-sse2
. endif
-
+# Work around a bug in current binutils, where the gold linker creates
+# duplicate symbols. See pr 218187. Disable the gold-linker for Qt5 ports.
+CONFIGURE_ARGS+= -no-use-gold-linker
. endif
. if defined(WANT_QT_DEBUG) || defined(WITH_DEBUG)