From 04fa28416c2e44284522175715040e899980ca5e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 17 Jun 2011 13:25:35 +0300 Subject: Pass --host and --build flags also when cross-compiling to Windows --- cppunit/makefile.mk | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3