use gb_DEBUGINFO_FLAGS consistently in gbuild ExternalProject's
A number of them didn't use it at all, others had it hand-written in various ways. Change-Id: Iaf86325f9cdc032926bac917dc3eef4e34661544 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132818 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
This commit is contained in:
parent
967717e65f
commit
ea68de2968
48 changed files with 86 additions and 71 deletions
3
external/cairo/ExternalProject_cairo.mk
vendored
3
external/cairo/ExternalProject_cairo.mk
vendored
|
@ -49,7 +49,8 @@ $(call gb_ExternalProject_get_state_target,cairo,build) :
|
|||
$(if $(debug),STRIP=" ") \
|
||||
$(if $(filter ANDROID iOS,$(OS)),CFLAGS="$(if $(debug),-g) $(ZLIB_CFLAGS) $(gb_VISIBILITY_FLAGS)") \
|
||||
$(if $(filter EMSCRIPTEN,$(OS)),CFLAGS=" $(ZLIB_CFLAGS) -Wno-enum-conversion $(gb_EMSCRIPTEN_CPPFLAGS)" --enable-pthread=yes PTHREAD_LIBS="") \
|
||||
$(if $(filter-out EMSCRIPTEN ANDROID iOS,$(OS)),CFLAGS="$(CFLAGS) $(if $(debug),-g) $(ZLIB_CFLAGS)" ) \
|
||||
$(if $(filter-out EMSCRIPTEN ANDROID iOS,$(OS)), \
|
||||
CFLAGS="$(CFLAGS) $(call gb_ExternalProject_get_build_flags,cairo) $(ZLIB_CFLAGS)" ) \
|
||||
$(if $(filter ANDROID iOS,$(OS)),PKG_CONFIG=./dummy_pkg_config) \
|
||||
LIBS="$(ZLIB_LIBS)" \
|
||||
$(if $(filter -fsanitize=%,$(LDFLAGS)),LDFLAGS="$(LDFLAGS) -fuse-ld=bfd") \
|
||||
|
|
|
@ -44,6 +44,13 @@ $(call gb_ExternalProject_get_state_target,firebird,build):
|
|||
) \
|
||||
$(if $(filter GCC-INTEL,$(COM)-$(CPUNAME)),-Di386=1) \
|
||||
" \
|
||||
&& export CFLAGS=" \
|
||||
$(if $(filter MSC,$(COM)),$(if $(MSVC_USE_DEBUG_RUNTIME),-DMSVC_USE_DEBUG_RUNTIME)) \
|
||||
$(if $(filter MSC-TRUE-X86_64,$(COM)-$(COM_IS_CLANG)-$(CPUNAME)),-march=x86-64-v2) \
|
||||
$(if $(HAVE_GCC_FNO_SIZED_DEALLOCATION),-fno-sized-deallocation -fno-delete-null-pointer-checks) \
|
||||
$(call gb_ExternalProject_get_build_flags,firebird) \
|
||||
$(if $(ENABLE_DEBUG),$(if $(filter MSC,$(COM)),-Od -Z7)) \
|
||||
" \
|
||||
&& export CXXFLAGS=" \
|
||||
$(BOOST_CXXFLAGS) \
|
||||
$(if $(filter MSC,$(COM)),$(if $(MSVC_USE_DEBUG_RUNTIME),-DMSVC_USE_DEBUG_RUNTIME)) \
|
||||
|
@ -51,7 +58,7 @@ $(call gb_ExternalProject_get_state_target,firebird,build):
|
|||
$(if $(HAVE_GCC_FNO_SIZED_DEALLOCATION),-fno-sized-deallocation -fno-delete-null-pointer-checks) \
|
||||
$(CXXFLAGS_CXX11) \
|
||||
$(if $(filter TRUE,$(COM_IS_CLANG)), -Wno-c++11-narrowing) \
|
||||
$(if $(call gb_Module__symbols_enabled,firebird),$(gb_DEBUGINFO_FLAGS)) \
|
||||
$(call gb_ExternalProject_get_build_flags,firebird) \
|
||||
$(if $(ENABLE_DEBUG),$(if $(filter MSC,$(COM)),-Od -Z7)) \
|
||||
" \
|
||||
&& export LDFLAGS=" \
|
||||
|
|
|
@ -21,7 +21,11 @@ $(eval $(call gb_ExternalProject_register_targets,fontconfig,\
|
|||
$(call gb_ExternalProject_get_state_target,fontconfig,build) :
|
||||
$(call gb_Trace_StartRange,fontconfig,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
CFLAGS="$(CFLAGS) $(if $(debug),-g) $(gb_VISIBILITY_FLAGS) $(if $(filter EMSCRIPTEN,$(OS)),-pthread)" $(if $(filter ANDROID,$(OS)),LIBS="-lm") \
|
||||
CFLAGS="$(CFLAGS) \
|
||||
$(call gb_ExternalProject_get_build_flags,fontconfig) \
|
||||
$(gb_VISIBILITY_FLAGS) \
|
||||
$(if $(filter EMSCRIPTEN,$(OS)),-pthread)" \
|
||||
$(if $(filter ANDROID,$(OS)),LIBS="-lm") \
|
||||
$(gb_RUN_CONFIGURE) ./configure \
|
||||
--disable-shared \
|
||||
--disable-silent-rules \
|
||||
|
|
|
@ -26,7 +26,10 @@ $(call gb_ExternalProject_get_state_target,freetype,build) :
|
|||
--without-png \
|
||||
--prefix=$(call gb_UnpackedTarball_get_dir,freetype/instdir) \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
CFLAGS="$(CFLAGS) $(if $(debug),-g) $(gb_VISIBILITY_FLAGS) $(gb_EMSCRIPTEN_CPPFLAGS)" \
|
||||
CFLAGS="$(CFLAGS) \
|
||||
$(call gb_ExternalProject_get_build_flags,freetype) \
|
||||
$(gb_VISIBILITY_FLAGS) \
|
||||
$(gb_EMSCRIPTEN_CPPFLAGS)" \
|
||||
&& $(MAKE) install \
|
||||
&& touch $@ )
|
||||
$(call gb_Trace_EndRange,freetype,EXTERNAL)
|
||||
|
|
14
external/gpgmepp/ExternalProject_gpgmepp.mk
vendored
14
external/gpgmepp/ExternalProject_gpgmepp.mk
vendored
|
@ -36,9 +36,7 @@ $(call gb_ExternalProject_get_state_target,gpgmepp,build): $(call gb_Executable_
|
|||
--disable-g13-test \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CFLAGS='$(CFLAGS) \
|
||||
$(if $(ENABLE_OPTIMIZED), \
|
||||
$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
|
||||
$(if $(call gb_Module__symbols_enabled,gpgmepp),$(gb_DEBUGINFO_FLAGS))' \
|
||||
$(call gb_ExternalProject_get_build_flags,gpgmepp)' \
|
||||
$(gb_WIN_GPG_platform_switches) \
|
||||
MAKE=$(MAKE) \
|
||||
&& $(MAKE) \
|
||||
|
@ -60,14 +58,10 @@ $(call gb_ExternalProject_get_state_target,gpgmepp,build):
|
|||
LIBASSUAN_CFLAGS="$(LIBASSUAN_CFLAGS)" \
|
||||
LIBASSUAN_LIBS="$(LIBASSUAN_LIBS)" \
|
||||
CFLAGS='$(CFLAGS) \
|
||||
$(if $(ENABLE_OPTIMIZED), \
|
||||
$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
|
||||
$(if $(call gb_Module__symbols_enabled,gpgmepp),$(gb_DEBUGINFO_FLAGS))' \
|
||||
$(call gb_ExternalProject_get_build_flags,gpgmepp)' \
|
||||
CXXFLAGS='$(CXXFLAGS) \
|
||||
$(if $(ENABLE_OPTIMIZED), \
|
||||
$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
|
||||
$(gb_COMPILERDEFS_STDLIB_DEBUG) \
|
||||
$(if $(call gb_Module__symbols_enabled,gpgmepp),$(gb_DEBUGINFO_FLAGS))' \
|
||||
$(call gb_ExternalProject_get_build_flags,gpgmepp) \
|
||||
$(gb_COMPILERDEFS_STDLIB_DEBUG)' \
|
||||
$(if $(filter LINUX,$(OS)), \
|
||||
'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
|
||||
-Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
|
||||
|
|
|
@ -44,9 +44,7 @@ $(call gb_ExternalProject_get_state_target,harfbuzz,build) :
|
|||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
CXXFLAGS=' \
|
||||
$(if $(filter ANDROID,$(OS)),-DHB_NO_MMAP=1,) \
|
||||
$(if $(call gb_Module__symbols_enabled,harfbuzz),$(gb_DEBUGINFO_FLAGS)) \
|
||||
$(if $(ENABLE_OPTIMIZED), \
|
||||
$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
|
||||
$(call gb_ExternalProject_get_build_flags,harfbuzz) \
|
||||
$(if $(ENABLE_RUNTIME_OPTIMIZATIONS),,-frtti) \
|
||||
$(CXXFLAGS) $(CXXFLAGS_CXX11) \
|
||||
$(ICU_UCHAR_TYPE) \
|
||||
|
|
|
@ -19,8 +19,7 @@ hunspell_CPPFLAGS+=$(gb_COMPILERDEFS_STDLIB_DEBUG)
|
|||
|
||||
hunspell_CXXFLAGS:=$(CXXFLAGS) $(gb_LTOFLAGS) \
|
||||
$(gb_EMSCRIPTEN_CPPFLAGS) \
|
||||
$(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
|
||||
$(if $(debug),$(gb_DEBUGINFO_FLAGS))
|
||||
$(call gb_ExternalProject_get_build_flags,hunspell)
|
||||
|
||||
hunspell_LDFLAGS:=$(gb_LTOFLAGS)
|
||||
|
||||
|
|
1
external/hyphen/ExternalProject_hyphen.mk
vendored
1
external/hyphen/ExternalProject_hyphen.mk
vendored
|
@ -24,6 +24,7 @@ $(call gb_ExternalProject_get_state_target,hyphen,build):
|
|||
$(if $(filter-out iOS,$(OS)),--with-pic) \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
$(if $(CROSS_COMPILING),gio_can_sniff=no) \
|
||||
CFLAGS=" $(CFLAGS) $(call gb_ExternalProject_get_build_flags,libgpg-error)" \
|
||||
&& $(MAKE) \
|
||||
)
|
||||
$(call gb_Trace_EndRange,hyphen,EXTERNAL)
|
||||
|
|
6
external/icu/ExternalProject_icu.mk
vendored
6
external/icu/ExternalProject_icu.mk
vendored
|
@ -40,18 +40,16 @@ else # $(OS)
|
|||
icu_CFLAGS:="$(CFLAGS) \
|
||||
$(if $(filter iOS,$(OS)),-DUCONFIG_NO_FILE_IO) \
|
||||
$(if $(SYSBASE),-I$(SYSBASE)/usr/include) \
|
||||
$(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
|
||||
$(call gb_ExternalProject_get_build_flags,icu) \
|
||||
$(if $(ENABLE_LTO),$(gb_LTOFLAGS)) \
|
||||
$(if $(filter GCC,$(COM)),-fno-strict-aliasing) \
|
||||
$(if $(call gb_Module__symbols_enabled,icu),$(gb_DEBUGINFO_FLAGS)) \
|
||||
$(if $(filter FUZZERS,$(BUILD_TYPE)),-DU_USE_STRTOD_L=0) \
|
||||
$(if $(filter ANDROID,$(OS)),-fvisibility=hidden -fno-omit-frame-pointer)"
|
||||
icu_CXXFLAGS:="$(CXXFLAGS) $(CXXFLAGS_CXX11) \
|
||||
$(if $(filter iOS,$(OS)),-DUCONFIG_NO_FILE_IO) \
|
||||
$(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
|
||||
$(call gb_ExternalProject_get_build_flags,icu) \
|
||||
$(if $(ENABLE_LTO),$(gb_LTOFLAGS)) \
|
||||
$(if $(filter GCC,$(COM)),-fno-strict-aliasing) \
|
||||
$(if $(call gb_Module__symbols_enabled,icu),$(gb_DEBUGINFO_FLAGS)) \
|
||||
$(if $(filter FUZZERS,$(BUILD_TYPE)),-DU_USE_STRTOD_L=0) \
|
||||
$(if $(filter ANDROID,$(OS)),-fvisibility=hidden -fno-omit-frame-pointer -I$(SRCDIR)/include)"
|
||||
icu_LDFLAGS:=" \
|
||||
|
|
2
external/lcms2/ExternalProject_lcms2.mk
vendored
2
external/lcms2/ExternalProject_lcms2.mk
vendored
|
@ -31,7 +31,7 @@ $(call gb_ExternalProject_get_state_target,lcms2,build):
|
|||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
$(if $(CROSS_COMPILING),$(if $(filter INTEL ARM,$(CPUNAME)),ac_cv_c_bigendian=no)) \
|
||||
CPPFLAGS=" $(SOLARINC)" \
|
||||
CFLAGS='$(CFLAGS) $(if $(debug),$(gb_DEBUGINFO_FLAGS)) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))' \
|
||||
CFLAGS='$(CFLAGS) $(call gb_ExternalProject_get_build_flags,lcms2)' \
|
||||
$(if $(DISABLE_DYNLOADING), \
|
||||
--enable-static --disable-shared \
|
||||
, \
|
||||
|
|
2
external/libabw/ExternalProject_libabw.mk
vendored
2
external/libabw/ExternalProject_libabw.mk
vendored
|
@ -36,7 +36,7 @@ $(call gb_ExternalProject_get_state_target,libabw,build) :
|
|||
--disable-werror \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
$(if $(gb_FULLDEPS),,--disable-dependency-tracking) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libabw)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
&& $(MAKE) \
|
||||
|
|
|
@ -31,8 +31,7 @@ $(call gb_ExternalProject_get_state_target,libassuan,build): $(call gb_Executabl
|
|||
--disable-shared \
|
||||
--disable-doc \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CFLAGS="$(CFLAGS) -D__STDC__=1" \
|
||||
CXXFLAGS="$(CXXFLAGS)" \
|
||||
CFLAGS="$(CFLAGS) -D__STDC__=1 $(call gb_ExternalProject_get_build_flags,libassuan)" \
|
||||
GPG_ERROR_CFLAGS="$(GPG_ERROR_CFLAGS)" \
|
||||
GPG_ERROR_LIBS="$(GPG_ERROR_LIBS)" \
|
||||
$(gb_WIN_GPG_platform_switches) \
|
||||
|
@ -47,6 +46,7 @@ $(call gb_ExternalProject_get_state_target,libassuan,build):
|
|||
autoreconf \
|
||||
&& $(gb_RUN_CONFIGURE) ./configure \
|
||||
--disable-doc \
|
||||
CFLAGS="$(CFLAGS) $(call gb_ExternalProject_get_build_flags,libassuan)" \
|
||||
GPG_ERROR_CFLAGS="$(GPG_ERROR_CFLAGS)" \
|
||||
GPG_ERROR_LIBS="$(GPG_ERROR_LIBS)" \
|
||||
$(if $(filter LINUX,$(OS)), \
|
||||
|
|
|
@ -18,7 +18,7 @@ $(eval $(call gb_ExternalProject_register_targets,libatomic_ops,\
|
|||
$(call gb_ExternalProject_get_state_target,libatomic_ops,build) :
|
||||
$(call gb_Trace_StartRange,libatomic_ops,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),CFLAGS="$(CFLAGS) $(gb_VISIBILITY_FLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" CXXFLAGS="$(CXXFLAGS) $(gb_VISIBILITY_FLAGS) $(gb_VISIBILITY_FLAGS_CXX) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))") \
|
||||
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),CFLAGS="$(CFLAGS) $(gb_VISIBILITY_FLAGS) $(call gb_ExternalProject_get_build_flags,libatomic_ops)" CXXFLAGS="$(CXXFLAGS) $(gb_VISIBILITY_FLAGS) $(gb_VISIBILITY_FLAGS_CXX) $(call gb_ExternalProject_get_build_flags,libatomic_ops)") \
|
||||
$(gb_RUN_CONFIGURE) ./configure \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
&& $(MAKE) \
|
||||
|
|
2
external/libcdr/ExternalProject_libcdr.mk
vendored
2
external/libcdr/ExternalProject_libcdr.mk
vendored
|
@ -38,7 +38,7 @@ $(call gb_ExternalProject_get_state_target,libcdr,build) :
|
|||
--disable-weffc \
|
||||
$(if $(gb_FULLDEPS),,--disable-dependency-tracking) \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libcdr)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
&& $(MAKE) \
|
||||
|
|
|
@ -39,7 +39,7 @@ $(call gb_ExternalProject_get_state_target,libebook,build) :
|
|||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
--disable-werror \
|
||||
--disable-weffc \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libebook)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(ICU_UCHAR_TYPE) $(BOOST_CPPFLAGS)" \
|
||||
LANGTAG_CFLAGS="$(LIBLANGTAG_CFLAGS)" \
|
||||
LANGTAG_LIBS="$(LIBLANGTAG_LIBS)" \
|
||||
|
|
|
@ -32,7 +32,7 @@ $(call gb_ExternalProject_get_state_target,libepubgen,build) :
|
|||
$(if $(ENABLE_DEBUG),--enable-debug,--disable-debug) \
|
||||
--disable-werror \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libepubgen)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
&& $(MAKE) \
|
||||
|
|
|
@ -49,7 +49,7 @@ $(call gb_ExternalProject_get_state_target,libetonyek,build) :
|
|||
'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
|
||||
-Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libetonyek)" \
|
||||
LANGTAG_CFLAGS="$(LIBLANGTAG_CFLAGS)" \
|
||||
LANGTAG_LIBS="$(LIBLANGTAG_LIBS)" \
|
||||
XML_CFLAGS="$(LIBXML_CFLAGS)" \
|
||||
|
|
|
@ -20,7 +20,7 @@ $(call gb_ExternalProject_get_state_target,libexttextcat,build):
|
|||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
$(if $(ENABLE_WERROR),--enable-werror,--disable-werror) \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
CFLAGS="$(CFLAGS) $(gb_VISIBILITY_FLAGS) $(gb_DEBUGINFO_FLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
|
||||
CFLAGS="$(CFLAGS) $(gb_VISIBILITY_FLAGS) $(gb_DEBUGINFO_FLAGS) $(call gb_ExternalProject_get_build_flags,libexttextcat) \
|
||||
$(if $(COM_IS_CLANG),-Qunused-arguments) \
|
||||
$(if $(filter AIX,$(OS)),-D_LINUX_SOURCE_COMPAT)" \
|
||||
&& $(MAKE) \
|
||||
|
|
|
@ -38,7 +38,7 @@ $(call gb_ExternalProject_get_state_target,libfreehand,build) :
|
|||
--disable-werror \
|
||||
--disable-weffc \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libfreehand)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
&& $(MAKE) \
|
||||
|
|
|
@ -39,6 +39,7 @@ $(call gb_ExternalProject_get_state_target,libgpg-error,build):
|
|||
--disable-rpath \
|
||||
--disable-languages \
|
||||
--disable-doc \
|
||||
CFLAGS=" $(CFLAGS) $(call gb_ExternalProject_get_build_flags,libgpg-error)" \
|
||||
CPPFLAGS=" $(SOLARINC)" \
|
||||
$(if $(filter MSC,$(COM)),--force_use_syscfg=true) \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
|
|
|
@ -30,9 +30,7 @@ $(call gb_ExternalProject_get_state_target,liblangtag,build):
|
|||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
$(if $(filter TRUE,$(HAVE_GCC_BUILTIN_ATOMIC)),"lt_cv_has_atomic=yes","lt_cv_has_atomic=no") \
|
||||
CFLAGS='$(CFLAGS) -pthread \
|
||||
$(if $(ENABLE_OPTIMIZED), \
|
||||
$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
|
||||
$(if $(call gb_Module__symbols_enabled,liblangtag),$(gb_DEBUGINFO_FLAGS))' \
|
||||
$(call gb_ExternalProject_get_build_flags,liblangtag)' \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
$(if $(CROSS_COMPILING),$(if $(filter WNT,$(OS)),"lt_cv_c99_vsnprintf=yes" "ac_cv_va_copy=yes","ac_cv_va_copy=no")) \
|
||||
LIBXML2_CFLAGS="$(LIBXML_CFLAGS)" \
|
||||
|
|
|
@ -36,7 +36,7 @@ $(call gb_ExternalProject_get_state_target,libmspub,build) :
|
|||
--disable-werror \
|
||||
--disable-weffc \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libmspub)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(ICU_UCHAR_TYPE) $(BOOST_CPPFLAGS)" \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
&& $(MAKE) \
|
||||
|
|
2
external/libmwaw/ExternalProject_libmwaw.mk
vendored
2
external/libmwaw/ExternalProject_libmwaw.mk
vendored
|
@ -36,7 +36,7 @@ $(call gb_ExternalProject_get_state_target,libmwaw,build) :
|
|||
$(if $(ENABLE_DEBUG),--enable-debug,--disable-debug) \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
--disable-werror \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libmwaw)" \
|
||||
$(if $(filter LINUX,$(OS)),$(if $(SYSTEM_REVENGE),, \
|
||||
'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
|
||||
-Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN')) \
|
||||
|
|
|
@ -30,7 +30,9 @@ $(call gb_ExternalProject_get_state_target,libnumbertext,build):
|
|||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
$(if $(filter AIX,$(OS)),CFLAGS="-D_LINUX_SOURCE_COMPAT") \
|
||||
$(if $(libnumbertext_CPPFLAGS),CPPFLAGS='$(libnumbertext_CPPFLAGS)') \
|
||||
CXXFLAGS="$(libnumbertext_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) $(if $(debug),$(gb_DEBUGINFO_FLAGS)) $(gb_VISIBILITY_FLAGS) $(gb_VISIBILITY_FLAGS_CXX)" \
|
||||
CXXFLAGS="$(libnumbertext_CXXFLAGS) \
|
||||
$(call gb_ExternalProject_get_build_flags,libnumbertext) \
|
||||
$(gb_VISIBILITY_FLAGS) $(gb_VISIBILITY_FLAGS_CXX)" \
|
||||
&& cd src && $(MAKE) \
|
||||
)
|
||||
$(call gb_Trace_EndRange,libnumbertext,EXTERNAL)
|
||||
|
|
|
@ -36,7 +36,7 @@ $(call gb_ExternalProject_get_state_target,libodfgen,build) :
|
|||
--disable-weffc \
|
||||
--without-docs \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libodfgen)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(if $(SYSTEM_REVENGE),,$(if $(filter-out MSC,$(COM)),-DLIBREVENGE_VISIBILITY))" \
|
||||
XML_CFLAGS="$(LIBXML_CFLAGS)" \
|
||||
XML_LIBS="$(LIBXML_LIBS)" \
|
||||
|
|
|
@ -34,7 +34,7 @@ $(call gb_ExternalProject_get_state_target,libpagemaker,build) :
|
|||
--disable-werror \
|
||||
--disable-weffc \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libpagemaker)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
&& $(MAKE) \
|
||||
|
|
2
external/libqxp/ExternalProject_libqxp.mk
vendored
2
external/libqxp/ExternalProject_libqxp.mk
vendored
|
@ -37,7 +37,7 @@ $(call gb_ExternalProject_get_state_target,libqxp,build) :
|
|||
--disable-weffc \
|
||||
$(if $(gb_FULLDEPS),,--disable-dependency-tracking) \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libqxp)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
&& $(MAKE) \
|
||||
|
|
|
@ -35,7 +35,7 @@ $(call gb_ExternalProject_get_state_target,librevenge,build) :
|
|||
--disable-generators \
|
||||
--without-docs \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,librevenge)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
$(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
|
||||
|
|
|
@ -37,7 +37,7 @@ $(call gb_ExternalProject_get_state_target,libstaroffice,build) :
|
|||
$(if $(ENABLE_DEBUG),--enable-debug,--disable-debug) \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
--disable-werror \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libstaroffice)" \
|
||||
$(if $(filter LINUX,$(OS)),$(if $(SYSTEM_REVENGE),, \
|
||||
'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
|
||||
-Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN')) \
|
||||
|
|
|
@ -37,7 +37,7 @@ $(call gb_ExternalProject_get_state_target,libvisio,build) :
|
|||
--disable-werror \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
$(if $(gb_FULLDEPS),,--disable-dependency-tracking) \
|
||||
CXXFLAGS="$(CXXFLAGS) $(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(CXXFLAGS) $(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libvisio)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
&& $(MAKE) \
|
||||
|
|
2
external/libwebp/ExternalProject_libwebp.mk
vendored
2
external/libwebp/ExternalProject_libwebp.mk
vendored
|
@ -46,7 +46,7 @@ $(call gb_ExternalProject_get_state_target,libwebp,build) :
|
|||
--disable-gif \
|
||||
--disable-wic \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CFLAGS="$(gb_CFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CFLAGS="$(gb_CFLAGS) $(call gb_ExternalProject_get_build_flags,libwebp)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
&& $(MAKE) \
|
||||
|
|
2
external/libwpd/ExternalProject_libwpd.mk
vendored
2
external/libwpd/ExternalProject_libwpd.mk
vendored
|
@ -36,7 +36,7 @@ $(call gb_ExternalProject_get_state_target,libwpd,build) :
|
|||
$(if $(filter MACOSX,$(OS)), \
|
||||
--prefix=/@.__________________________________________________OOO) \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libwpd)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
$(if $(filter LINUX,$(OS)),$(if $(SYSTEM_REVENGE),, \
|
||||
'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
|
||||
|
|
2
external/libwpg/ExternalProject_libwpg.mk
vendored
2
external/libwpg/ExternalProject_libwpg.mk
vendored
|
@ -36,7 +36,7 @@ $(call gb_ExternalProject_get_state_target,libwpg,build) :
|
|||
$(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libwpg)" \
|
||||
$(if $(filter LINUX,$(OS)), \
|
||||
'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
|
||||
-Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
|
||||
|
|
2
external/libwps/ExternalProject_libwps.mk
vendored
2
external/libwps/ExternalProject_libwps.mk
vendored
|
@ -21,7 +21,7 @@ $(eval $(call gb_ExternalProject_use_externals,libwps,\
|
|||
|
||||
libwps_CPPFLAGS+=$(gb_COMPILERDEFS_STDLIB_DEBUG)
|
||||
|
||||
libwps_CXXFLAGS=$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))
|
||||
libwps_CXXFLAGS=$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libwps)
|
||||
|
||||
libwps_LDFLAGS=
|
||||
ifeq ($(OS),LINUX)
|
||||
|
|
4
external/libxml2/ExternalProject_libxml2.mk
vendored
4
external/libxml2/ExternalProject_libxml2.mk
vendored
|
@ -41,7 +41,9 @@ $(call gb_ExternalProject_get_state_target,libxml2,build):
|
|||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
$(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________URELIB) \
|
||||
LDFLAGS="$(if $(SYSBASE),-L$(SYSBASE)/usr/lib)" \
|
||||
CFLAGS="$(CFLAGS) $(if $(SYSBASE),-I$(SYSBASE)/usr/include) $(if $(debug),-g) $(if $(gb_Module_CURRENTMODULE_SYMBOLS_ENABLED),-g)" \
|
||||
CFLAGS="$(CFLAGS) \
|
||||
$(if $(SYSBASE),-I$(SYSBASE)/usr/include) \
|
||||
$(call gb_ExternalProject_get_build_flags,libxml2)" \
|
||||
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),--disable-shared,--disable-static) \
|
||||
&& $(MAKE) \
|
||||
)
|
||||
|
|
2
external/libzmf/ExternalProject_libzmf.mk
vendored
2
external/libzmf/ExternalProject_libzmf.mk
vendored
|
@ -38,7 +38,7 @@ $(call gb_ExternalProject_get_state_target,libzmf,build) :
|
|||
--disable-werror \
|
||||
--disable-weffc \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libzmf)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
&& $(MAKE) \
|
||||
|
|
2
external/lpsolve/ExternalProject_lpsolve.mk
vendored
2
external/lpsolve/ExternalProject_lpsolve.mk
vendored
|
@ -25,7 +25,7 @@ else # $(OS)!=WNT
|
|||
$(call gb_ExternalProject_get_state_target,lpsolve,build):
|
||||
$(call gb_Trace_StartRange,lpsolve,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
CC="$(CC) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) $(if $(debug),$(gb_DEBUGINFO_FLAGS))" \
|
||||
CC="$(CC) $(call gb_ExternalProject_get_build_flags,lpsolve)" \
|
||||
$(if $(filter MACOSX,$(OS)),EXTRA_LINKFLAGS='-install_name @__________________________________________________OOO/liblpsolve55.dylib') \
|
||||
sh -e $(if $(filter MACOSX,$(OS)),ccc.osx, \
|
||||
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),ccc.static, \
|
||||
|
|
1
external/mythes/ExternalProject_mythes.mk
vendored
1
external/mythes/ExternalProject_mythes.mk
vendored
|
@ -20,6 +20,7 @@ $(eval $(call gb_ExternalProject_register_targets,mythes,\
|
|||
$(call gb_ExternalProject_get_state_target,mythes,build):
|
||||
$(call gb_Trace_StartRange,mythes,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
CXXFLAGS=" $(CXXFLAGS) $(call gb_ExternalProject_get_build_flags,mythes)" \
|
||||
LIBS="$(gb_STDLIBS) $(LIBS)" $(gb_RUN_CONFIGURE) ./configure --disable-shared --with-pic \
|
||||
$(gb_CONFIGURE_PLATFORMS) \
|
||||
$(if $(CROSS_COMPILING),gio_can_sniff=no) \
|
||||
|
|
|
@ -42,10 +42,10 @@ $(call gb_ExternalProject_get_state_target,openldap,build) :
|
|||
ac_cv_func_memcmp_working=yes \
|
||||
) \
|
||||
$(if $(SYSTEM_NSS), \
|
||||
CPPFLAGS="$(CPPFLAGS) $(NSS_CFLAGS)" CFLAGS="$(CFLAGS) $(NSS_CFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" LDFLAGS="$(LDFLAGS) $(NSS_LIBS)" \
|
||||
CPPFLAGS="$(CPPFLAGS) $(NSS_CFLAGS)" CFLAGS="$(CFLAGS) $(NSS_CFLAGS) $(call gb_ExternalProject_get_build_flags,openldap)" LDFLAGS="$(LDFLAGS) $(NSS_LIBS)" \
|
||||
, \
|
||||
CPPFLAGS="$(CPPFLAGS) -I$(call gb_UnpackedTarball_get_dir,nss)/dist/public/nss -I$(call gb_UnpackedTarball_get_dir,nss)/dist/out/include" \
|
||||
CFLAGS="$(CFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) -I$(call gb_UnpackedTarball_get_dir,nss)/dist/public/nss -I$(call gb_UnpackedTarball_get_dir,nss)/dist/out/include" \
|
||||
CFLAGS="$(CFLAGS) $(call gb_ExternalProject_get_build_flags,openldap) -I$(call gb_UnpackedTarball_get_dir,nss)/dist/public/nss -I$(call gb_UnpackedTarball_get_dir,nss)/dist/out/include" \
|
||||
) \
|
||||
$(if $(openldap_LDFLAGS),LDFLAGS="$(LDFLAGS) $(openldap_LDFLAGS)") \
|
||||
&& MAKEFLAGS= && $(MAKE) \
|
||||
|
|
4
external/redland/ExternalProject_raptor.mk
vendored
4
external/redland/ExternalProject_raptor.mk
vendored
|
@ -19,7 +19,9 @@ $(call gb_ExternalProject_get_state_target,raptor,build):
|
|||
$(call gb_Trace_StartRange,raptor,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
$(if $(filter iOS,$(OS)),LIBS="-liconv") \
|
||||
CFLAGS="$(CFLAGS) $(if $(debug),-g,-O) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) \
|
||||
CFLAGS="$(CFLAGS) \
|
||||
$(call gb_ExternalProject_get_build_flags,raptor) \
|
||||
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) \
|
||||
$(if $(filter GCCLINUXPOWERPC64,$(COM)$(OS)$(CPUNAME)),-mminimal-toc)" \
|
||||
LDFLAGS=" \
|
||||
$(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN") \
|
||||
|
|
2
external/redland/ExternalProject_rasqal.mk
vendored
2
external/redland/ExternalProject_rasqal.mk
vendored
|
@ -22,7 +22,7 @@ $(eval $(call gb_ExternalProject_register_targets,rasqal,\
|
|||
$(call gb_ExternalProject_get_state_target,rasqal,build):
|
||||
$(call gb_Trace_StartRange,rasqal,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
CFLAGS="$(CFLAGS) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CFLAGS="$(CFLAGS) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) $(call gb_ExternalProject_get_build_flags,rasqal)" \
|
||||
LDFLAGS=" \
|
||||
$(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN") \
|
||||
$(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
|
||||
|
|
2
external/redland/ExternalProject_redland.mk
vendored
2
external/redland/ExternalProject_redland.mk
vendored
|
@ -23,7 +23,7 @@ $(eval $(call gb_ExternalProject_register_targets,redland,\
|
|||
$(call gb_ExternalProject_get_state_target,redland,build):
|
||||
$(call gb_Trace_StartRange,redland,EXTERNAL)
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
CFLAGS="$(CFLAGS) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
|
||||
CFLAGS="$(CFLAGS) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) $(call gb_ExternalProject_get_build_flags,redland)" \
|
||||
LDFLAGS=" \
|
||||
$(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN") \
|
||||
$(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
|
||||
|
|
2
external/xmlsec/ExternalProject_xmlsec.mk
vendored
2
external/xmlsec/ExternalProject_xmlsec.mk
vendored
|
@ -51,7 +51,7 @@ $(call gb_ExternalProject_get_state_target,xmlsec,build) :
|
|||
&& $(gb_RUN_CONFIGURE) ./configure \
|
||||
--with-pic --disable-shared --disable-crypto-dl --without-libxslt --without-gnutls --without-gcrypt --disable-apps --disable-docs \
|
||||
$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
|
||||
CFLAGS="$(CFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) $(if $(debug),$(gb_DEBUGINFO_FLAGS)) $(gb_VISIBILITY_FLAGS)" \
|
||||
CFLAGS="$(CFLAGS) $(call gb_ExternalProject_get_build_flags,xmlsec) $(gb_VISIBILITY_FLAGS)" \
|
||||
$(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
|
||||
$(if $(ENABLE_NSS), \
|
||||
--without-openssl \
|
||||
|
|
|
@ -40,7 +40,7 @@ define gb_CliLibrary__command
|
|||
$(CLI_CSCFLAGS) \
|
||||
-target:library \
|
||||
-out:$(1) \
|
||||
$(if $(call gb_LinkTarget__symbols_enabled,$(1)),\
|
||||
$(if $(call gb_target_symbols_enabled,$(1)),\
|
||||
-debug:pdbonly \
|
||||
-pdb:$(call gb_LinkTarget__get_pdb_filename,$(WORKDIR)/LinkTarget/Library/$(notdir $(1)))) \
|
||||
-keyfile:$(CLI_KEYFILE) \
|
||||
|
|
|
@ -206,6 +206,10 @@ $(call gb_ExternalProject_get_preparation_target,$(1)) : \
|
|||
|
||||
endef
|
||||
|
||||
# Returns flags to include in CFLAGS/CXXFLAGS to enable optimizations and/or debugging.
|
||||
# gb_ExternalProject_get_build_flags project
|
||||
gb_ExternalProject_get_build_flags = $(call gb_LinkTarget__get_debugflags,ExternalProject_$(1))
|
||||
|
||||
# Run a target command
|
||||
#
|
||||
# This provides a wrapper that changes to the right directory,
|
||||
|
|
|
@ -43,18 +43,11 @@
|
|||
# FYI: on Windows, gb_Library_use_system_win32_libs also calls gb_LinkTarget_add_libs; easy to miss.
|
||||
gb_LinkTarget__syslib = %@
|
||||
|
||||
# Detect whether symbols should be enabled for the given gbuild target.
|
||||
# enable if: no "-TARGET" defined AND [module is enabled OR "TARGET" defined]
|
||||
gb_LinkTarget__symbols_enabled = \
|
||||
$(and $(if $(filter -$(1),$(ENABLE_SYMBOLS_FOR)),,$(true)),\
|
||||
$(or $(gb_Module_CURRENTMODULE_SYMBOLS_ENABLED),\
|
||||
$(filter $(1),$(ENABLE_SYMBOLS_FOR))))
|
||||
|
||||
# debug flags, if the LinkTarget is named in the list of libraries of ENABLE_SYMBOLS_FOR
|
||||
gb_LinkTarget__get_debugflags= \
|
||||
$(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS), \
|
||||
$(if $(ENABLE_OPTIMIZED_DEBUG),$(gb_COMPILERDEBUGOPTFLAGS),$(gb_COMPILERNOOPTFLAGS))) \
|
||||
$(if $(call gb_LinkTarget__symbols_enabled,$(1)),$(gb_DEBUGINFO_FLAGS))
|
||||
$(if $(call gb_target_symbols_enabled,$(1)),$(gb_DEBUGINFO_FLAGS))
|
||||
|
||||
# T_LDFLAGS is just expanded once. Override the flags here, so that the linker and compiler use the same.
|
||||
ifeq (EMSCRIPTEN,$(OS))
|
||||
|
@ -64,7 +57,7 @@ else
|
|||
# but moreover strip debug from libraries for which debuginfo is not wanted
|
||||
# (some libraries reuse .o files from other libraries, notably unittests)
|
||||
gb_LinkTarget__get_stripldflags=$(if $(strip $(CFLAGS)$(CXXFLAGS)$(OBJCFLAGS)$(OBJCXXFLAGS)$(LDFLAGS)),,$(gb_LINKERSTRIPDEBUGFLAGS))
|
||||
gb_LinkTarget__get_debugldflags=$(if $(call gb_LinkTarget__symbols_enabled,$(1)),$(gb_LINKER_DEBUGINFO_FLAGS),$(gb_LINKEROPTFLAGS) $(call gb_LinkTarget__get_stripldflags,$(1)))
|
||||
gb_LinkTarget__get_debugldflags=$(if $(call gb_target_symbols_enabled,$(1)),$(gb_LINKER_DEBUGINFO_FLAGS),$(gb_LINKEROPTFLAGS) $(call gb_LinkTarget__get_stripldflags,$(1)))
|
||||
endif
|
||||
|
||||
# generic cflags/cxxflags to use (optimization flags, debug flags)
|
||||
|
@ -1061,7 +1054,7 @@ $(call gb_LinkTarget_get_target,$(1)) : PLUGIN_WARNINGS_AS_ERRORS :=
|
|||
$(call gb_LinkTarget_get_target,$(1)) : EXTERNAL_CODE :=
|
||||
$(call gb_LinkTarget_get_target,$(1)) : SOVERSIONSCRIPT :=
|
||||
$(call gb_LinkTarget_get_target,$(1)) : COMPILER_TEST :=
|
||||
$(call gb_LinkTarget_get_target,$(1)) : T_SYMBOLS := $(if $(call gb_LinkTarget__symbols_enabled,$(2)),$(true),$(false))
|
||||
$(call gb_LinkTarget_get_target,$(1)) : T_SYMBOLS := $(if $(call gb_target_symbols_enabled,$(2)),$(true),$(false))
|
||||
$(call gb_LinkTarget_get_target,$(1)) : T_FORCE_COMPILE := $(if $(call gb_LinkTarget__force_compile,$(2)),$(true),$(false))
|
||||
$(call gb_LinkTarget_get_target,$(1)) : T_CC :=
|
||||
$(call gb_LinkTarget_get_target,$(1)) : T_CXX :=
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
# PrecompiledHeader class
|
||||
|
||||
# Use different PCH file depending on whether we use debugging symbols.
|
||||
gb_PrecompiledHeader__get_debugdir = $(if $(call gb_LinkTarget__symbols_enabled,$(1)),debug,nodebug)
|
||||
gb_PrecompiledHeader__get_debugdir = $(if $(call gb_target_symbols_enabled,$(1)),debug,nodebug)
|
||||
|
||||
# $(call gb_PrecompiledHeader_generate_timestamp_rule,linktargetmakefilename)
|
||||
define gb_PrecompiledHeader_generate_timestamp_rule
|
||||
|
|
|
@ -150,6 +150,13 @@ ifeq ($(gb_ENABLE_SYMBOLS_FOR),no)
|
|||
gb_ENABLE_SYMBOLS_FOR :=
|
||||
endif
|
||||
|
||||
# Detect whether symbols should be enabled for the given gbuild target.
|
||||
# enable if: no "-TARGET" defined AND [module is enabled OR "TARGET" defined]
|
||||
gb_target_symbols_enabled = \
|
||||
$(and $(if $(filter -$(1),$(ENABLE_SYMBOLS_FOR)),,$(true)),\
|
||||
$(or $(gb_Module_CURRENTMODULE_SYMBOLS_ENABLED),\
|
||||
$(filter $(1),$(ENABLE_SYMBOLS_FOR))))
|
||||
|
||||
ifeq ($(BLOCK_PCH),)
|
||||
gb_ENABLE_PCH := $(ENABLE_PCH)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue