diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-12 12:38:35 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-13 01:54:42 -0400 |
commit | 0af23aaf69694a3eceaf995d0971d3818c1c2501 (patch) | |
tree | 6a05dd496a84d2845c511a4a370202e8393337bc | |
parent | 2ee0956ceedec98a4a678da179ff7a470e3e8818 (diff) |
Trying to fix Windows build. Still broken.
Change-Id: I4d5764d9fd8f03e61c99d5f5597314deefc3ffd5
-rw-r--r-- | liborcus/ExternalProject_liborcus.mk | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/liborcus/ExternalProject_liborcus.mk b/liborcus/ExternalProject_liborcus.mk index b46180c09c8e..5b3444554254 100644 --- a/liborcus/ExternalProject_liborcus.mk +++ b/liborcus/ExternalProject_liborcus.mk @@ -30,10 +30,16 @@ $(eval $(call gb_ExternalProject_register_targets,liborcus,\ # that executable on Android, but we don't want to bother with # patching out building it for Android. +#$(if $(filter MSC,$(COM)),CPPFLAGS+="-DBOOST_ALL_NO_LIB") CXXFLAGS+="$(BOOST_CXXFLAGS)) + $(call gb_ExternalProject_get_state_target,liborcus,build) : $(call gb_ExternalProject_run,build,\ $(if $(filter ANDROID,$(OS)),LIBS='-lgnustl_shared -lm') \ $(if $(filter YES,$(SYSTEM_ZLIB)),LIBS+=-lz) \ + $(if $(filter NO,$(SYSTEM_ZLIB)),CPPFLAGS+=-I$(OUTDIR)/inc/external/zlib) \ + $(if $(filter NO,$(SYSTEM_BOOST)),CXXFLAGS+=-I$(WORKDIR)/UnpackedTarball/boost) \ + $(if $(filter YES,$(SYSTEM_BOOST)),LDFLAGS=$(BOOST_LDFLAGS)) \ + $(if $(filter LINUX FREEBSD OPENBSD NETBSD DRAGONFLY ANDROID,$(OS)),$(if $(gb_ENABLE_DBGUTIL),CPPFLAGS+=-D_GLIBCXX_DEBUG)) \ ./configure \ --with-pic \ --enable-static \ @@ -41,11 +47,6 @@ $(call gb_ExternalProject_get_state_target,liborcus,build) : --disable-debug \ --disable-spreadsheet-model \ --disable-werror \ - $(if $(filter LINUX FREEBSD OPENBSD NETBSD DRAGONFLY ANDROID,$(OS)),$(if $(gb_ENABLE_DBGUTIL),CPPFLAGS=-D_GLIBCXX_DEBUG)) \ - $(if $(filter MSC,$(COM)),CPPFLAGS="-DBOOST_ALL_NO_LIB") \ - CXXFLAGS="$(BOOST_CXXFLAGS) $(if $(filter NO,$(SYSTEM_BOOST)),\ - -I$(call gb_UnpackedTarball_get_dir,boost),$(BOOST_CPPFLAGS))" \ - $(if $(filter YES,$(SYSTEM_BOOST)),LDFLAGS=$(BOOST_LDFLAGS)) \ $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ && $(MAKE) \ ) |