pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/icu icu: Append -fno-addrsig in clang build



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2ffa1411227a
branches:  trunk
changeset: 389029:2ffa1411227a
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Tue Dec 18 06:14:08 2018 +0000

description:
icu: Append -fno-addrsig in clang build

The -faddrsig option (enabled by default) generates executables that are
not compatible with GNU strip(1).

diffstat:

 textproc/icu/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 37ea191c8b56 -r 2ffa1411227a textproc/icu/Makefile
--- a/textproc/icu/Makefile     Tue Dec 18 01:55:56 2018 +0000
+++ b/textproc/icu/Makefile     Tue Dec 18 06:14:08 2018 +0000
@@ -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 '/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"



Home | Main Index | Thread Index | Old Index