summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjperkin <jperkin>2017-04-20 12:56:47 +0000
committerjperkin <jperkin>2017-04-20 12:56:47 +0000
commit12cc486517dc66ba09a2f78e5e1857c9f6e824e4 (patch)
treeb280e98eea940d94be4e73c0fc2cded1b1b29ed1 /lang
parent2b46e0ede9891105cd78a87c5b855e59233ed982 (diff)
downloadpkgsrc-12cc486517dc66ba09a2f78e5e1857c9f6e824e4.tar.gz
Exclude some bogus symbols from the mapfile on SunOS. It may be that
this is appropriate for all platforms, in which case it can be changed to be a patch instead.
Diffstat (limited to 'lang')
-rw-r--r--lang/llvm/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/llvm/Makefile b/lang/llvm/Makefile
index 6ebab1e8258..dbd980edf5d 100644
--- a/lang/llvm/Makefile
+++ b/lang/llvm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2017/03/19 19:01:48 adam Exp $
+# $NetBSD: Makefile,v 1.17 2017/04/20 12:56:47 jperkin Exp $
#
# when updating this, please also update:
# devel/include-what-you-use
@@ -84,6 +84,13 @@ REPLACE_PYTHON+= utils/wciia.py
TEST_TARGET= check
TEST_ENV+= LD_LIBRARY_PATH=${WRKDIR}/build/lib
+# It may be that the Solaris linker is more strict here and they can be removed on
+# all platforms. Change this to a patch if verified.
+SUBST_CLASSES.SunOS+= lto
+SUBST_STAGE.lto= pre-configure
+SUBST_FILES.lto= tools/lto/lto.exports
+SUBST_SED.lto= -e '/^LLVM/d'
+
.include "../../mk/bsd.prefs.mk"
PLIST_VARS+= notdylib