diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-10-14 18:11:20 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-10-14 22:42:13 +0300 |
commit | 0683f53d019a225da7ebe18e1aabfda41c6bb442 (patch) | |
tree | 296a0921123beedcd376b01870ed517a1c451376 /xpdf | |
parent | 3d1f4649ee72dd85e1d994ac2bdccc3147830bbd (diff) |
Check for cross-compilation in general
Change-Id: I52cbef2ff90fa4af04c21f043c07fcd2aae8d273
Diffstat (limited to 'xpdf')
-rw-r--r-- | xpdf/makefile.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xpdf/makefile.mk b/xpdf/makefile.mk index 239912bb115a..53b3b676b3fe 100644 --- a/xpdf/makefile.mk +++ b/xpdf/makefile.mk @@ -88,6 +88,10 @@ CONFIGURE_FLAGS += \ --prefix=/@.__________________________________________________$(EXTRPATH) .END +.IF "$(CROSS_COMPILING)"=="YES" +CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) +.ENDIF + .IF "$(OS)$(CPU)"=="MACOSXP" CXXFLAGS+=-malign-natural .EXPORT: CXXFLAGS @@ -102,10 +106,6 @@ LDFLAGS=-Wl,--enable-runtime-pseudo-reloc-v2 CONFIGURE_ACTION=./configure CONFIGURE_FLAGS+=--without-x --enable-multithreaded --enable-exceptions LIBS=-lgdi32 -.IF "$(CROSS_COMPILING)"=="YES" -CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) -.ENDIF - BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS) .ELSE CONFIGURE_ACTION= |