21 lines
601 B
Plaintext
21 lines
601 B
Plaintext
|
$OpenBSD: patch-config_rules_mk,v 1.3 2011/03/26 10:58:36 landry Exp $
|
||
|
Add -rpath $(installdir) to be sure libxul/libxpcom can open their
|
||
|
depending libs when being dlopen()'ed themselves
|
||
|
--- config/rules.mk.orig Sat Jun 26 07:27:42 2010
|
||
|
+++ config/rules.mk Thu Jul 15 23:17:14 2010
|
||
|
@@ -606,6 +606,14 @@ endif
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
+ifeq ($(OS_ARCH),OpenBSD)
|
||
|
+ifdef IS_COMPONENT
|
||
|
+EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic
|
||
|
+endif
|
||
|
+DSO_LDOPTS += -Wl,-rpath,'$(installdir)'
|
||
|
+OS_LDFLAGS += -Wl,-rpath,'$(installdir)'
|
||
|
+endif
|
||
|
+
|
||
|
ifeq ($(OS_ARCH),Linux)
|
||
|
ifneq (,$(filter mips mipsel,$(OS_TEST)))
|
||
|
ifeq ($(MODULE),layout)
|