summaryrefslogtreecommitdiff
path: root/editors/openoffice-3/files/patch-freebsd.mk
diff options
context:
space:
mode:
Diffstat (limited to 'editors/openoffice-3/files/patch-freebsd.mk')
-rw-r--r--editors/openoffice-3/files/patch-freebsd.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/editors/openoffice-3/files/patch-freebsd.mk b/editors/openoffice-3/files/patch-freebsd.mk
new file mode 100644
index 000000000000..81ad7207f48a
--- /dev/null
+++ b/editors/openoffice-3/files/patch-freebsd.mk
@@ -0,0 +1,19 @@
+--- solenv/gbuild/platform/freebsd.mk~ 2011-12-24 18:45:27.000000000 +0900
++++ solenv/gbuild/platform/freebsd.mk 2011-12-25 11:01:37.000000000 +0900
+@@ -120,6 +120,7 @@
+ -Wl,-z,combreloc \
+ -Wl,-z,defs \
+ $(subst -L../lib , ,$(SOLARLIB)) \
++ %%RPATH%% \
+
+ ifeq ($(HAVE_LD_HASH_STYLE),TRUE)
+ gb_LinkTarget_LDFLAGS += \
+@@ -302,7 +302,7 @@
+ $(foreach lib,$(gb_Library_UNOVERLIBS),$(lib):URELIB) \
+
+ define gb_Library_get_rpath
+-'-Wl,-rpath,$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Library_get_layer,$(1)))' \
++-Wl,-z,origin '-Wl,-rpath,$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Library_get_layer,$(1)))' \
+ '-Wl,-rpath-link,$(gb_Library_OUTDIRLOCATION)'
+ endef
+