summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-06-17 13:25:35 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-06-17 13:25:35 +0300
commitbb3796bbc19c618854c4c9f98c9e013b98ca89d0 (patch)
treed66f54a66d46a94196ed84d611b9ea20f4493d30
parent04b1b50820fd81baeb3404c388af56d1e5777c95 (diff)
Pass --host and --build flags also when cross-compiling to Windows
-rw-r--r--cppunit/makefile.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/cppunit/makefile.mk b/cppunit/makefile.mk
index 3974f96..5d1d1a4 100644
--- a/cppunit/makefile.mk
+++ b/cppunit/makefile.mk
@@ -84,6 +84,10 @@ CONFIGURE_FLAGS = --prefix=$(shell cd $(PACKAGE_DIR) && \
LDFLAGS='$(LDFLAGS)' \
LIBS='$(MY_LIBS)'
+.IF "$(CROSS_COMPILING)"=="YES"
+CONFIGURE_FLAGS+= --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
+.ENDIF
+
BUILD_ACTION = $(GNUMAKE) -j$(EXTMAXPROCESS)
BUILD_FLAGS = install