summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-18 16:13:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-18 16:13:55 +0200
commit5206b0376dcd511843f0e6cb072fe4184adcc487 (patch)
tree07d044298b035cd0f46424f5f4b5d58cef3beb36 /external
parentdb5918f5cdf95f6d47adb250265253c5a186a5c7 (diff)
external/libxmlsec: Pass down gb_VISIBILITY_FLAGS
...otherwise ASan build started to fail in CppunitTest_services with > ==16664==ERROR: AddressSanitizer: odr-violation (0x7f4583587440): > [1] size=35 'xmlSecNs' strings.c:22:15 > [2] size=35 'xmlSecNs' strings.c:22:15 > These globals were registered at these points: > [1]: > #0 0x44f410 in __asan_register_globals.part.11 /data/sbergman/github.com/llvm-project/llvm-project-20170507/compiler-rt/lib/asan/asan_globals.cc:358 > #1 0x7f458295cded in asan.module_ctor (instdir/program/libxsec_gpg.so+0x197ded) > > [2]: > #0 0x44f410 in __asan_register_globals.part.11 /data/sbergman/github.com/llvm-project/llvm-project-20170507/compiler-rt/lib/asan/asan_globals.cc:358 > #1 0x7f45833cc28d in asan.module_ctor (instdir/program/libxsec_xmlsec.so+0x5da28d) > > ==16664==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0 > SUMMARY: AddressSanitizer: odr-violation: global 'xmlSecNs' at strings.c:22:15 > ==16664==ABORTING after cae5f2a543b31552ccd9765aca5eb514fa694e07 "gpg4libre: initial GPG signature generation" Change-Id: I689241df52a7e878bfbd2d3dd6409bf0c104638b
Diffstat (limited to 'external')
-rw-r--r--external/libxmlsec/ExternalProject_xmlsec.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/libxmlsec/ExternalProject_xmlsec.mk b/external/libxmlsec/ExternalProject_xmlsec.mk
index 66abd02ac3a5..33fe25bb6977 100644
--- a/external/libxmlsec/ExternalProject_xmlsec.mk
+++ b/external/libxmlsec/ExternalProject_xmlsec.mk
@@ -40,7 +40,7 @@ $(call gb_ExternalProject_get_state_target,xmlsec,build) :
&& ./configure \
--with-pic --disable-shared --disable-crypto-dl --without-libxslt --without-gnutls \
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
- CFLAGS="$(CFLAGS) $(if $(debug),$(gb_COMPILERNOOPTFLAGS) $(gb_DEBUGINFO_FLAGS) $(gb_DEBUG_CFLAGS),$(gb_COMPILEROPTFLAGS))" \
+ CFLAGS="$(CFLAGS) $(if $(debug),$(gb_COMPILERNOOPTFLAGS) $(gb_DEBUGINFO_FLAGS) $(gb_DEBUG_CFLAGS),$(gb_COMPILEROPTFLAGS)) $(gb_VISIBILITY_FLAGS)" \
$(if $(or $(filter-out ANDROID,$(OS)),$(DISABLE_OPENSSL)),--without-openssl,--with-openssl=$(call gb_UnpackedTarball_get_dir,openssl)) \
$(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
$(if $(SYSTEM_NSS),,$(if $(filter MACOSX,$(OS)),--disable-pkgconfig)) \