summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-09-03 09:15:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-03 09:22:16 +0200
commit7a4cc197910546d6fb3469806c406bf358ba0168 (patch)
tree401ac54af363bf01a4337b8e5853b9c01c0c5e8f /external
parent73db53f530ac1684da9428dd5a5e43f7fd9b5dab (diff)
Also on Linux do not export symbols from static orcus libraries
...otherwise e.g. running CppunitTest_sc_filters_test under -fsanitize=address complains about ODR violation of 'vtable for orcus::csv::parse_error' exported from both libsclo.so and libscqahelper.so. A problem could potentially arise with exceptions thrown from static orcus code linked into library and intended to be caught in another, but hopefully all such exceptions are intended to be caught already locally anyway. Change-Id: Iff5c73d7a2324b457c2e86656c11b18f7ba210f6
Diffstat (limited to 'external')
-rw-r--r--external/liborcus/liborcus_0.1.0-dllimport.patch8
1 files changed, 7 insertions, 1 deletions
diff --git a/external/liborcus/liborcus_0.1.0-dllimport.patch b/external/liborcus/liborcus_0.1.0-dllimport.patch
index 6255d060a492..7c91a7742227 100644
--- a/external/liborcus/liborcus_0.1.0-dllimport.patch
+++ b/external/liborcus/liborcus_0.1.0-dllimport.patch
@@ -1,6 +1,6 @@
--- include/orcus/env.hpp
+++ include/orcus/env.hpp
-@@ -35,14 +35,8 @@
+@@ -35,19 +35,13 @@
#else
#define ORCUS_DLLPUBLIC __declspec(dllexport)
#endif
@@ -16,3 +16,9 @@
#endif
#define ORCUS_DLLLOCAL
#else
+ #if __GNUC__ >= 4
+- #define ORCUS_DLLPUBLIC __attribute__ ((visibility ("default")))
++ #define ORCUS_DLLPUBLIC
+ #define ORCUS_DLLLOCAL __attribute__ ((visibility ("hidden")))
+ #else
+ #define ORCUS_DLLPUBLIC