summaryrefslogtreecommitdiff
path: root/libcroco
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-06-07 00:05:57 +0300
committerTor Lillqvist <tml@iki.fi>2011-06-07 00:15:02 +0300
commitc4b0c753716fd7c61507a48f00a548e12bda059e (patch)
treead12c4cee7f60eb06003ace42526ae68aaccf8a8 /libcroco
parentea445e1b3be2a2063cee3284a63678dd1a872921 (diff)
Add cross-compilation support
Diffstat (limited to 'libcroco')
-rw-r--r--libcroco/makefile.mk4
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)