summaryrefslogtreecommitdiff
path: root/libxslt
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-08-23 11:27:40 +0200
committerJan Holesovsky <kendy@suse.cz>2011-08-23 11:27:40 +0200
commitb0eea6c310e187af5b9580a29d0f25c320fbc190 (patch)
treeae629c583bbfb5f4ac6f05f43b6dca2e74f7d1b3 /libxslt
parent8e0c60ac1415de1b0fe27747f5d47fac993ab273 (diff)
Fix cross-building libxslt to at least go through configure; does not build.
Diffstat (limited to 'libxslt')
-rw-r--r--libxslt/makefile.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/libxslt/makefile.mk b/libxslt/makefile.mk
index 576dedefa2b3..4767248bcbb5 100644
--- a/libxslt/makefile.mk
+++ b/libxslt/makefile.mk
@@ -72,7 +72,17 @@ xslt_LIBS+=$(MINGW_SHARED_LIBSTDCPP)
.ENDIF
CONFIGURE_DIR=
CONFIGURE_ACTION=.$/configure
-CONFIGURE_FLAGS=--without-crypto --without-python --enable-static=no --build=i586-pc-mingw32 --host=i586-pc-mingw32 CC="$(xslt_CC)" CFLAGS="$(xslt_CFLAGS)" LDFLAGS="-no-undefined -Wl,--enable-runtime-pseudo-reloc-v2 -L$(ILIB:s/;/ -L/)" LIBS="$(xslt_LIBS)" LIBXML2LIB=$(LIBXML2LIB) OBJDUMP=objdump
+.IF "$(CROSS_COMPILING)"=="YES"
+BUILD_AND_HOST=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
+.ELSE
+BUILD_AND_HOST=--build=i586-pc-mingw32 --host=i586-pc-mingw32
+.ENDIF
+.IF "$(ILIB)" == ""
+CONF_ILIB=
+.ELSE
+CONF_ILIB=-L$(ILIB:s/;/ -L/)
+.ENDIF
+CONFIGURE_FLAGS=--without-crypto --without-python --enable-static=no $(BUILD_AND_HOST) CC="$(xslt_CC)" CFLAGS="$(xslt_CFLAGS)" LDFLAGS="-Wl,--no-undefined -Wl,--enable-runtime-pseudo-reloc-v2 $(CONF_ILIB)" LIBS="$(xslt_LIBS)" LIBXML2LIB=$(LIBXML2LIB) OBJDUMP=objdump
BUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE)
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
BUILD_DIR=$(CONFIGURE_DIR)