summaryrefslogtreecommitdiff
path: root/devel/nss/patches/patch-md
blob: 135d6dc77507be10f70d17cd8c36a6b5916ec13d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-md,v 1.3 2018/01/22 11:43:14 jperkin Exp $

???. from www/firefox/patch-ax.

--- nss/coreconf/SunOS5.mk.orig	2017-11-22 19:31:28.000000000 +0000
+++ nss/coreconf/SunOS5.mk
@@ -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
 
+ifdef LIBRUNPATH
+DSO_LDOPTS += -R$(LIBRUNPATH)
+endif
+
 # -KPIC generates position independent code for use in shared libraries.
 # (Similarly for -fPIC in case of gcc.)
 ifdef NS_USE_GCC