diff options
author | David Tardon <dtardon@redhat.com> | 2017-10-28 15:31:34 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2017-10-28 19:17:19 +0200 |
commit | 2a8c66adfffe3074f0433d44e3b6899c58b54db6 (patch) | |
tree | 912df702ea84176135fd66e664d468744d41caa2 /external | |
parent | d73adb887ce08c22121c7bb02681efd49fd5781c (diff) |
libfreehand: pass optimization flags to configure
Change-Id: Idef9d938ef3f4067530041142e64e191dcbfff51
Reviewed-on: https://gerrit.libreoffice.org/43994
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/libfreehand/ExternalProject_libfreehand.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/external/libfreehand/ExternalProject_libfreehand.mk b/external/libfreehand/ExternalProject_libfreehand.mk index f1640bb88e03..19d3f0e3afd9 100644 --- a/external/libfreehand/ExternalProject_libfreehand.mk +++ b/external/libfreehand/ExternalProject_libfreehand.mk @@ -26,7 +26,6 @@ $(eval $(call gb_ExternalProject_use_externals,libfreehand,\ $(call gb_ExternalProject_get_state_target,libfreehand,build) : $(call gb_ExternalProject_run,build,\ export PKG_CONFIG="" \ - && export CXXFLAGS="$(CXXFLAGS) $(ICU_UCHAR_TYPE)" \ && MAKE=$(MAKE) ./configure \ --with-pic \ --enable-static \ @@ -38,7 +37,8 @@ $(call gb_ExternalProject_get_state_target,libfreehand,build) : --disable-werror \ --disable-weffc \ $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \ - CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \ + CXXFLAGS="$(gb_CXXFLAGS) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \ + CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS) $(ICU_UCHAR_TYPE)" \ $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ && $(MAKE) \ ) |