summaryrefslogtreecommitdiff
path: root/editors/openoffice-devel/files/patch-icu_makefile.mk
blob: 2e4b7c014a3202965e8a9766878047b46e9f6b4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- icu/makefile.mk.orig	2019-09-17 22:55:16 UTC
+++ icu/makefile.mk
@@ -86,6 +86,11 @@ LDFLAGSADD += -Wl,--hash-style=both
 LDFLAGSADD += -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo
 .ENDIF
 
+# FreeBSD with gcc from ports needs -Wl,-rpath= to find the matching libstdc++ 
+.IF "$(OS)"=="FREEBSD"
+LDFLAGSADD+=$(FBSD_GCC_RPATH)
+.ENDIF
+
 CONFIGURE_DIR=source
 
 CONFIGURE_ACTION+=sh -c 'CFLAGS="$(icu_CFLAGS)" CXXFLAGS="$(icu_CXXFLAGS)" LDFLAGS="$(icu_LDFLAGS) $(LDFLAGSADD)" ./configure --enable-layout --enable-static --enable-shared=yes $(DISABLE_64BIT)'