external/liborcus: Let us override -fvisiblity=hidden

(needed by UBSan builds that use -fvisibility-ms-compat instead)

Change-Id: Ifabaf352cf2b9e77f9458eff46e240141f9e729d
This commit is contained in:
Stephan Bergmann
2016-09-20 09:57:01 +02:00
parent 5edebdf677
commit ee0a0b8407
2 changed files with 12 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,liborcus,1))
$(eval $(call gb_UnpackedTarball_add_patches,liborcus,\
external/liborcus/0001-workaround-a-linking-problem-on-windows.patch \
external/liborcus/rpath.patch.0 \
external/liborcus/visibility.patch.0 \
))
ifeq ($(OS),WNT)

11
external/liborcus/visibility.patch.0 vendored Normal file
View File

@@ -0,0 +1,11 @@
--- configure
+++ configure
@@ -4255,7 +4255,7 @@
fi
-CXXFLAGS="$CXXFLAGS -fvisibility=hidden -Wall -pthread"
+CXXFLAGS="-fvisibility=hidden $CXXFLAGS -Wall -pthread"
# ===========================
# Find required base packages