summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-09-20 09:57:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-09-20 09:57:01 +0200
commitee0a0b840763df64ee8940697dbea69c6cccf5e9 (patch)
tree3a4273352379f020ceec4fbc2b3a2c67a228a696 /external
parent5edebdf67720ac0867b088400e2b31806138dc25 (diff)
external/liborcus: Let us override -fvisiblity=hidden
(needed by UBSan builds that use -fvisibility-ms-compat instead) Change-Id: Ifabaf352cf2b9e77f9458eff46e240141f9e729d
Diffstat (limited to 'external')
-rw-r--r--external/liborcus/UnpackedTarball_liborcus.mk1
-rw-r--r--external/liborcus/visibility.patch.011
2 files changed, 12 insertions, 0 deletions
diff --git a/external/liborcus/UnpackedTarball_liborcus.mk b/external/liborcus/UnpackedTarball_liborcus.mk
index 09b3c2889f0c..5d09d6de7ccd 100644
--- a/external/liborcus/UnpackedTarball_liborcus.mk
+++ b/external/liborcus/UnpackedTarball_liborcus.mk
@@ -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)
diff --git a/external/liborcus/visibility.patch.0 b/external/liborcus/visibility.patch.0
new file mode 100644
index 000000000000..c9c53a9bf0e5
--- /dev/null
+++ b/external/liborcus/visibility.patch.0
@@ -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