summaryrefslogtreecommitdiff
path: root/gettext
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-06-06 01:07:50 +0300
committerTor Lillqvist <tml@iki.fi>2011-06-06 01:07:50 +0300
commita3c369662401501a5ebad8fe30f7e23cbce9949d (patch)
tree8bb40460f9fa37c3a9204d4f933ee56a0e635436 /gettext
parent718381b51c459b55ce25326215fe0edce5572e88 (diff)
Fix cross-compilation to ppc MacOSX
Yeah, just build all the unneeded stuff (the executables like the msgfmt command and their support libraries) in this case too, for now. (We obviously won't be able to run ppc exectuables when cross-compiling from Intel Mac.)
Diffstat (limited to 'gettext')
-rw-r--r--gettext/makefile.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/gettext/makefile.mk b/gettext/makefile.mk
index cf13c736aed2..5b82a3c5fb56 100644
--- a/gettext/makefile.mk
+++ b/gettext/makefile.mk
@@ -57,6 +57,10 @@ CONFIGURE_ACTION=./configure --prefix=$(SRC_ROOT)/$(PRJNAME)/$(MISC) $(eq,$(VERB
CONFIGURE_FLAGS=--disable-dependeny-tracking --disable-acl --disable-curses --without-emacs --without-git --disable-java
CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)" CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS)" CXXFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS)"
+.IF "$(CROSS_COMPILING)"!=""
+CONFIGURE_FLAGS+= --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
+.ENDIF
+
BUILD_ACTION=$(GNUMAKE)
BUILD_DIR=$(CONFIGURE_DIR)