diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-08-28 10:04:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-08-28 10:04:08 +0200 |
commit | dccf47b7f61e088622747539d1487590080da3b8 (patch) | |
tree | 48ea0ed09e38c03f01207d8c97d09ddc702d7cf9 /python3/ExternalProject_python3.mk | |
parent | 9ebcd5ec54ec5d77cf46849f7f00bf915644f6e1 (diff) |
Build python3 with debug flags if --enable-debug
...the special case for AIX can probably be cleaned up?
Change-Id: I34ca29acaddcff9b811067504c12a8243a6d046b
Diffstat (limited to 'python3/ExternalProject_python3.mk')
-rw-r--r-- | python3/ExternalProject_python3.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python3/ExternalProject_python3.mk b/python3/ExternalProject_python3.mk index 805e73929062..22065bb7aa33 100644 --- a/python3/ExternalProject_python3.mk +++ b/python3/ExternalProject_python3.mk @@ -63,8 +63,10 @@ $(call gb_ExternalProject_get_state_target,python3,build) : $(if $(filter TRUE,$(ENABLE_VALGRIND)),--with-valgrind) \ --prefix=/python-inst \ $(if $(filter MACOSX,$(OS)),,--with-system-expat) \ - $(if $(filter AIX,$(OS)),--disable-ipv6 --with-threads \ - OPT="-g0 -fwrapv -O3 -Wall") \ + $(if $(filter AIX,$(OS)), \ + --disable-ipv6 --with-threads OPT="-g0 -fwrapv -O3 -Wall", \ + $(if $(gb_Module_CURRENTMODULE_DEBUG_ENABLED), \ + OPT="$(gb_COMPILERNOOPTFLAGS) $(gb_DEBUG_CFLAGS)")) \ $(if $(filter WNT-GCC,$(OS)-$(COM)),--with-threads ac_cv_printf_zd_format=no) \ $(if $(filter MACOSX,$(OS)), \ $(if $(filter INTEL POWERPC,$(CPUNAME)),--enable-universalsdk=$(MACOSX_SDK_PATH) --with-universal-archs=32-bit) --enable-framework=/@__________________________________________________OOO --with-framework-name=LibreOfficePython, \ |