[Libreoffice-commits] .: liblangtag/ExternalProject_langtag.mk
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Nov 12 01:53:56 PST 2012
liblangtag/ExternalProject_langtag.mk | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
New commits:
commit 40e9afbf745bdac5f8fb27fd8f2205cde6683697
Author: Tor Lillqvist <tlillqvist at suse.com>
Date: Mon Nov 12 11:44:35 2012 +0200
Fix MSVC build: put the CFLAGS inside CC for preprocessor check to succeed
Change-Id: Iafc7f735a99f3e3ac335efa8610ff415d3deae3b
diff --git a/liblangtag/ExternalProject_langtag.mk b/liblangtag/ExternalProject_langtag.mk
index a895065..59810cd 100644
--- a/liblangtag/ExternalProject_langtag.mk
+++ b/liblangtag/ExternalProject_langtag.mk
@@ -17,15 +17,16 @@ $(eval $(call gb_ExternalProject_register_targets,langtag,\
$(call gb_ExternalProject_get_state_target,langtag,build):
cd $(EXTERNAL_WORKDIR) \
- $(if $(filter MSC,$(COM)),&& export LIB="$(ILIB)") \
+ $(if $(filter MSC,$(COM)), \
+ && export LIB="$(ILIB)" \
+ CC="$(CC) -MD -nologo \
+ $(if $(filter TRUE,$(ENABLE_DEBUG)),-Zi) \
+ $(SOLARINC)") \
&& ./configure --disable-modules --disable-test --disable-introspection \
$(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
$(if $(filter NO,$(SYSTEM_LIBXML)),LIBXML2_CFLAGS="-I$(OUTDIR)/inc/external" \
$(if $(filter MSC,$(COM)),LIBXML2_LIBS="$(OUTDIR)/lib/libxml2.lib",LIBXML2_LIBS="-L$(OUTDIR)/lib -lxml2"),\
$(if $(filter MACOSX,$(OS)),LIBXML2_CFLAGS="$(LIBXML_CFLAGS)" LIBXML2_LIBS="$(LIBXML_LIBS)")) \
- $(if $(filter MSC,$(COM)),CC="$(CC) -MD -nologo \
- $(if $(filter TRUE,$(ENABLE_DEBUG)),-Zi)") \
- $(if $(filter MSC,$(COM)),CFLAGS="$(SOLARINC)") \
$(if $(filter-out LINUX FREEBSD,$(OS)),,LDFLAGS="-Wl,-z,origin -Wl,-rpath,$$ORIGIN:$$ORIGIN/../ure-link/lib") \
$(if $(filter-out SOLARIS,$(OS)),,LDFLAGS="-Wl,-z,origin -Wl,-R,$$ORIGIN:$$ORIGIN/../ure-link/lib") \
$(if $(filter-out WNTGCC,$(GUI)$(COM)),,LDFLAGS="-Wl,--enable-runtime-pseudo-reloc-v2") \
More information about the Libreoffice-commits
mailing list