summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-06-07 00:05:47 +0300
committerTor Lillqvist <tml@iki.fi>2011-06-07 00:15:00 +0300
commitea445e1b3be2a2063cee3284a63678dd1a872921 (patch)
tree7d54ec29e14e7182030edf4ec279fd5462b4690e
parent168c537165e75ee1e3d12935371e65f6f2d92bf6 (diff)
Add cross-compilation support
-rwxr-xr-xlibrsvg/makefile.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/librsvg/makefile.mk b/librsvg/makefile.mk
index 9ddc809b9bb9..664baf6e730c 100755
--- a/librsvg/makefile.mk
+++ b/librsvg/makefile.mk
@@ -76,6 +76,10 @@ CONFIGURE_FLAGS=--disable-gtk-theme --disable-tools --with-croco --with-svgz \
CONFIGURE_FLAGS+= CPPFLAGS="$(ARCH_FLAGS) $(EXTRA_CDEFS)"
+.IF "$(CROSS_COMPILING)"=="YES"
+CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
+.ENDIF
+
BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) \
$(GNUMAKE) $(!eq,$(VERBOSE),$(NULL) V=1) -j$(MAXPROCESS)
BUILD_DIR=$(CONFIGURE_DIR)