summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-01-20 12:40:07 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-07-07 11:57:12 +0200
commitcaa5620dd769167d116c8218ce0f0009b5b3287b (patch)
treee64b3c2e8bbc750869ce27ed8ad6ed9b9d8e04f1 /external
parent0dd73c060c9e57591fc839bf9cc1174e9472e049 (diff)
libxmlsec: respect --enable-debug with GCC
So we compile using either '-O2' or '-O0 -g', instead of '-O2 -g' all the time. Change-Id: Iefc22f38be37ea876c713724657af460eb4c1606 (cherry picked from commit d4d2c7db766f8afc77e752c56cfa1cbc3636088f)
Diffstat (limited to 'external')
-rw-r--r--external/libxmlsec/ExternalProject_xmlsec.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/external/libxmlsec/ExternalProject_xmlsec.mk b/external/libxmlsec/ExternalProject_xmlsec.mk
index 33b07121f5b9..781f22fe587f 100644
--- a/external/libxmlsec/ExternalProject_xmlsec.mk
+++ b/external/libxmlsec/ExternalProject_xmlsec.mk
@@ -55,6 +55,7 @@ $(call gb_ExternalProject_get_state_target,xmlsec,build) :
autoreconf \
&& ./configure \
--with-pic --disable-shared --disable-crypto-dl --without-libxslt --without-gnutls \
+ CFLAGS="$(if $(debug),$(gb_COMPILERNOOPTFLAGS) $(gb_DEBUG_CFLAGS),$(gb_COMPILEROPTFLAGS))" \
$(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)) \