diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-06-07 00:05:57 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-06-07 00:15:02 +0300 |
commit | c4b0c753716fd7c61507a48f00a548e12bda059e (patch) | |
tree | ad12c4cee7f60eb06003ace42526ae68aaccf8a8 /libcroco | |
parent | ea445e1b3be2a2063cee3284a63678dd1a872921 (diff) |
Add cross-compilation support
Diffstat (limited to 'libcroco')
-rw-r--r-- | libcroco/makefile.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcroco/makefile.mk b/libcroco/makefile.mk index 4888bfa405bc..9e26dded174f 100644 --- a/libcroco/makefile.mk +++ b/libcroco/makefile.mk @@ -62,6 +62,10 @@ CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) \ CONFIGURE_FLAGS=$(eq,$(OS),MACOSX CPPFLAGS="$(EXTRA_CDEFS)" $(NULL)) +.IF "$(CROSS_COMPILING)"=="YES" +CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) +.ENDIF + BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) \ $(GNUMAKE) BUILD_DIR=$(CONFIGURE_DIR) |