diff options
author | Jan Holesovsky <kendy@suse.cz> | 2012-08-29 09:48:00 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-08-29 09:50:34 +0200 |
commit | 02f6e55231c8b1646cbafc0e3e591da8122e2bf1 (patch) | |
tree | 4ff1cefbd2e92e28df20e0369adb5ce54ba17d2b /libxmlsec/makefile.mk | |
parent | dcc140204a65d3e7075b0e67ac3ffa0a5737d4ea (diff) |
Fix MinGW build - libxmlsec builds now.
This also removes patching of the generated 'configure' in libxmlsec; instead,
autoreconf is called.
Change-Id: I28c1cc38432d195dd0219fb5a0ab0ea1a35f7a32
Diffstat (limited to 'libxmlsec/makefile.mk')
-rw-r--r-- | libxmlsec/makefile.mk | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/libxmlsec/makefile.mk b/libxmlsec/makefile.mk index 18c46fb5ac40..2f0550f07df1 100644 --- a/libxmlsec/makefile.mk +++ b/libxmlsec/makefile.mk @@ -97,13 +97,24 @@ xmlsec_LIBS= .IF "$(MINGW_SHARED_GXXLIB)"=="YES" xmlsec_LIBS+=$(MINGW_SHARED_LIBSTDCPP) .ENDIF +CONF_ILIB= +.IF "$(ILIB)" != "" +CONF_ILIB=-L$(ILIB:s/;/ -L/) +.ENDIF + CONFIGURE_DIR= -CONFIGURE_ACTION=.$/configure +CONFIGURE_ACTION=autoreconf ; .$/configure + +.IF "$(CROSS_COMPILING)"=="YES" +BUILD_AND_HOST=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) MINGW_SYSROOT=$(MINGW_SYSROOT) +.ELSE +BUILD_AND_HOST=--build=i586-pc-mingw32 --host=i586-pc-mingw32 --with-mozilla_ver=1.7.5 --enable-mscrypto +.ENDIF # Note that this is obsolete crack for building *locally* on Windows with MinGW, # something we don't see the point in here in LibreOffice -CONFIGURE_FLAGS=--with-libxslt=no --with-openssl=no --with-gnutls=no --with-mozilla_ver=1.7.5 --enable-mscrypto --disable-crypto-dl --build=i586-pc-mingw32 --host=i586-pc-mingw32 CC="$(xmlsec_CC)" LDFLAGS="-no-undefined -L$(ILIB:s/;/ -L/)" LIBS="$(xmlsec_LIBS)" LIBXML2LIB=$(LIBXML2LIB) ZLIB3RDLIB=$(ZLIB3RDLIB) OBJDUMP="$(WRAPCMD) objdump" +CONFIGURE_FLAGS=--with-libxslt=no --with-openssl=no --with-gnutls=no --disable-crypto-dl $(BUILD_AND_HOST) CC="$(xmlsec_CC)" LDFLAGS="-Wl,--no-undefined $(CONF_ILIB)" LIBS="$(xmlsec_LIBS)" LIBXML2LIB="$(LIBXML2LIB)" ZLIB3RDLIB=$(ZLIB3RDLIB) OBJDUMP="$(WRAPCMD) objdump" .IF "$(SYSTEM_NSS)" != "YES" CONFIGURE_FLAGS+=--enable-pkgconfig=no @@ -154,7 +165,7 @@ LDFLAGS:=$(xmlsec_LDFLAGS) .ENDIF CONFIGURE_DIR= -CONFIGURE_ACTION=.$/configure ADDCFLAGS="$(xmlsec_CFLAGS)" CPPFLAGS="$(xmlsec_CPPFLAGS)" +CONFIGURE_ACTION=autoreconf ; .$/configure ADDCFLAGS="$(xmlsec_CFLAGS)" CPPFLAGS="$(xmlsec_CPPFLAGS)" CONFIGURE_FLAGS=--with-pic --disable-shared --disable-crypto-dl --with-libxslt=no --with-gnutls=no LIBXML2LIB="$(LIBXML2LIB)" .IF "$(CROSS_COMPILING)"=="YES" @@ -193,8 +204,12 @@ OUTDIR2INC=include$/xmlsec .IF "$(OS)"=="WNT" .IF "$(COM)"=="GCC" -OUT2LIB+=src$/.libs$/libxmlsec1.dll.a src$/nss$/.libs$/libxmlsec1-nss.dll.a src$/mscrypto$/.libs$/libxmlsec1-mscrypto.dll.a -OUT2BIN+=src$/.libs$/libxmlsec1.dll src$/nss$/.libs$/libxmlsec1-nss.dll src$/mscrypto$/.libs$/libxmlsec1-mscrypto.dll +OUT2LIB+=src$/.libs$/libxmlsec1.dll.a src$/nss$/.libs$/libxmlsec1-nss.dll.a +OUT2BIN+=src$/.libs$/libxmlsec1.dll src$/nss$/.libs$/libxmlsec1-nss.dll +.IF "$(CROSS_COMPILING)" != "YES" +OUT2LIB+=src$/mscrypto$/.libs$/libxmlsec1-mscrypto.dll.a +OUT2BIN+=src$/mscrypto$/.libs$/libxmlsec1-mscrypto.dll +.ENDIF .ELSE OUT2LIB+=win32$/binaries$/*.lib OUT2BIN+=win32$/binaries$/*.dll |