pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/nss nss: Fix build on SunOS with clang.
details: https://anonhg.NetBSD.org/pkgsrc/rev/5eea254ef4f5
branches: trunk
changeset: 374402:5eea254ef4f5
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Mon Jan 22 11:43:14 2018 +0000
description:
nss: Fix build on SunOS with clang.
diffstat:
devel/nss/Makefile | 10 +++++++---
devel/nss/distinfo | 6 +++---
devel/nss/patches/patch-md | 15 ++++++++++++---
devel/nss/patches/patch-me | 18 +++++++++++++++---
4 files changed, 37 insertions(+), 12 deletions(-)
diffs (103 lines):
diff -r 41fa8662b252 -r 5eea254ef4f5 devel/nss/Makefile
--- a/devel/nss/Makefile Mon Jan 22 11:36:31 2018 +0000
+++ b/devel/nss/Makefile Mon Jan 22 11:43:14 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.144 2017/11/30 16:45:21 adam Exp $
+# $NetBSD: Makefile,v 1.145 2018/01/22 11:43:14 jperkin Exp $
DISTNAME= nss-${NSS_RELEASE:S/.0$//}
NSS_RELEASE= 3.34.1
@@ -51,8 +51,12 @@
.endif
PLIST_SUBST+= SO_SUFFIX=${SO_SUFFIX:Q}
-.if ${OPSYS} == "SunOS" && (${PKGSRC_COMPILER:Mclang} || ${PKGSRC_COMPILER:Mgcc})
-MAKE_ENV+= NS_USE_GCC=YES
+.if !empty(PKGSRC_COMPILER:Mclang) || !empty(PKGSRC_COMPILER:Mgcc)
+MAKE_ENV.SunOS+= NS_USE_GCC=YES
+.endif
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+MAKE_ENV.SunOS+= CC_IS_CLANG=YES
.endif
SUBST_CLASSES+= 64bit
diff -r 41fa8662b252 -r 5eea254ef4f5 devel/nss/distinfo
--- a/devel/nss/distinfo Mon Jan 22 11:36:31 2018 +0000
+++ b/devel/nss/distinfo Mon Jan 22 11:43:14 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.79 2017/11/27 23:49:06 ryoon Exp $
+$NetBSD: distinfo,v 1.80 2018/01/22 11:43:14 jperkin Exp $
SHA1 (nss-3.34.1.tar.gz) = 13bf0f2b6c6b39f3a85c54991a92f92a418c7822
RMD160 (nss-3.34.1.tar.gz) = 100206175425b11dd409166af4458a11d8569bf2
@@ -6,8 +6,8 @@
Size (nss-3.34.1.tar.gz) = 9562876 bytes
SHA1 (patch-am) = bab47640c0d25629f43578e7b788859418b27ecd
SHA1 (patch-an) = 4ab22f2a575676b5b640bc9a760b83eb05c75e69
-SHA1 (patch-md) = 0a09fd2abb8674a2d301f1b6a5331af5db94178f
-SHA1 (patch-me) = e785e4e12b54f2618746a550a09593c2eede5f65
+SHA1 (patch-md) = 8547c9414332c02221b96719dea1e09cb741f4d1
+SHA1 (patch-me) = 9da633e494c8656f22162b354d9710a770d24345
SHA1 (patch-mf) = 534fe5f711f60dadc3432bc805a6153535f11709
SHA1 (patch-mg) = 3c878548c98bdea559a3e653e63e0ed22a2a8834
SHA1 (patch-mh) = a46d3098a85c3a4a57895a9845bc1741fc5e9561
diff -r 41fa8662b252 -r 5eea254ef4f5 devel/nss/patches/patch-md
--- a/devel/nss/patches/patch-md Mon Jan 22 11:36:31 2018 +0000
+++ b/devel/nss/patches/patch-md Mon Jan 22 11:43:14 2018 +0000
@@ -1,10 +1,19 @@
-$NetBSD: patch-md,v 1.2 2013/07/20 09:28:12 ryoon Exp $
+$NetBSD: patch-md,v 1.3 2018/01/22 11:43:14 jperkin Exp $
???. from www/firefox/patch-ax.
---- nss/coreconf/SunOS5.mk.orig 2009-06-29 18:15:11.000000000 +0200
+--- nss/coreconf/SunOS5.mk.orig 2017-11-22 19:31:28.000000000 +0000
+++ nss/coreconf/SunOS5.mk
-@@ -156,6 +156,10 @@ endif
+@@ -106,7 +106,7 @@ ifdef NS_USE_GCC
+ ifeq ($(USE_64), 1)
+ DSO_LDOPTS += -m64
+ endif
+- DSO_LDOPTS += -shared -h $(notdir $@)
++ DSO_LDOPTS += -shared -Wl,-h,$(notdir $@)
+ else
+ ifeq ($(USE_64), 1)
+ ifeq ($(OS_TEST),i86pc)
+@@ -119,6 +119,10 @@ endif
endif
DSO_LDOPTS += -z combreloc -z defs -z ignore
diff -r 41fa8662b252 -r 5eea254ef4f5 devel/nss/patches/patch-me
--- a/devel/nss/patches/patch-me Mon Jan 22 11:36:31 2018 +0000
+++ b/devel/nss/patches/patch-me Mon Jan 22 11:43:14 2018 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-me,v 1.2 2013/07/20 09:28:12 ryoon Exp $
+$NetBSD: patch-me,v 1.3 2018/01/22 11:43:14 jperkin Exp $
Add DragonFly support.
---- nss/lib/freebl/Makefile.orig 2009-06-29 18:15:13.000000000 +0200
+--- nss/lib/freebl/Makefile.orig 2018-01-22 11:22:38.812914721 +0000
+++ nss/lib/freebl/Makefile
-@@ -212,7 +212,7 @@ endif
+@@ -298,7 +298,7 @@ endif
# to bind the blapi function references in FREEBLVector vector
# (ldvector.c) to the blapi functions defined in the freebl
# shared libraries.
@@ -13,3 +13,15 @@
MKSHLIB += -Wl,-Bsymbolic
endif
+@@ -450,7 +450,11 @@ else
+ ifdef NS_USE_GCC
+ LD = gcc
+ AS = gcc
++ ifdef CC_IS_CLANG
++ ASFLAGS = -no-integrated-as
++ else
+ ASFLAGS = -x assembler-with-cpp
++ endif
+ endif
+ ifeq ($(USE_64),1)
+ # Solaris for AMD64
Home |
Main Index |
Thread Index |
Old Index