summaryrefslogtreecommitdiff
path: root/cppunit
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
commit04fa28416c2e44284522175715040e899980ca5e (patch)
treea5a258feafae30e06bf3da2a60e86079a5b511ef /cppunit
parent9b8b08b4dadbb82dca89ae7b0ed6bbc264467f11 (diff)
Pass --host and --build flags also when cross-compiling to Windows
Diffstat (limited to 'cppunit')
-rw-r--r--cppunit/makefile.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/cppunit/makefile.mk b/cppunit/makefile.mk
index 3974f96c345d..5d1d1a4a49cf 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