From ee0a0b840763df64ee8940697dbea69c6cccf5e9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 20 Sep 2016 09:57:01 +0200 Subject: external/liborcus: Let us override -fvisiblity=hidden (needed by UBSan builds that use -fvisibility-ms-compat instead) Change-Id: Ifabaf352cf2b9e77f9458eff46e240141f9e729d --- external/liborcus/UnpackedTarball_liborcus.mk | 1 + external/liborcus/visibility.patch.0 | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 external/liborcus/visibility.patch.0 (limited to 'external') 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 -- cgit