summaryrefslogtreecommitdiff
path: root/textproc/icu/Makefile
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2018-12-18 06:14:08 +0000
committerkamil <kamil@pkgsrc.org>2018-12-18 06:14:08 +0000
commit07abe6ce5afa67327680ef70875b6bc24d121cd5 (patch)
treecc4dd52379e64bc3d0cb528bbd8449630191e7bc /textproc/icu/Makefile
parentb82cd8ca364af99fd499fa3f1a7eacef5b8c986e (diff)
downloadpkgsrc-07abe6ce5afa67327680ef70875b6bc24d121cd5.tar.gz
icu: Append -fno-addrsig in clang build
The -faddrsig option (enabled by default) generates executables that are not compatible with GNU strip(1).
Diffstat (limited to 'textproc/icu/Makefile')
-rw-r--r--textproc/icu/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/textproc/icu/Makefile b/textproc/icu/Makefile
index d9e679eaf43..7f66d1444f7 100644
--- a/textproc/icu/Makefile
+++ b/textproc/icu/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.118 2018/12/11 10:15:55 abs Exp $
+# $NetBSD: Makefile,v 1.119 2018/12/18 06:14:08 kamil Exp $
DISTNAME= icu4c-63_1-src
PKGNAME= ${DISTNAME:S/4c//:S/-src//:S/_/./g}
@@ -130,4 +130,12 @@ SUBST_SED.icu-config+= -e 's/l$${LIBICU}/l$${ICUPREFIX}/g'
SUBST_SED.icu-config+= -e '/l$${ICUPREFIX}/ s/$${ICULIBSUFFIX_VERSION}//g'
.endif
+.if !empty(PKGSRC_COMPILER:Mclang)
+# The -faddrsig flag does not make libraries compatible with GNU strip(1)
+CWRAPPERS_APPEND.cxx+= -fno-addrsig
+CWRAPPERS_APPEND.cc+= -fno-addrsig
+_WRAP_EXTRA_ARGS.CXX+= -fno-addrsig
+_WRAP_EXTRA_ARGS.CC+= -fno-addrsig
+.endif
+
.include "../../mk/bsd.pkg.mk"