From: Nikos Mavrogiannopoulos Date: Tue, 24 Nov 2015 12:04:28 +0000 (+0100) Subject: cross.mk: updated windows cross compile makefile X-Git-Tag: gnutls_3_5_0~532 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4271cea63db743b79afb0155e02c9cd898438eb7;p=thirdparty%2Fgnutls.git cross.mk: updated windows cross compile makefile --- diff --git a/cross.mk b/cross.mk index 052919f51d..a091acba7d 100644 --- a/cross.mk +++ b/cross.mk @@ -1,6 +1,6 @@ SMP=-j4 -GNUTLS_VERSION:=3.4.2 +GNUTLS_VERSION:=3.4.7 GNUTLS_FILE:=gnutls-$(GNUTLS_VERSION).tar.xz GNUTLS_DIR:=gnutls-$(GNUTLS_VERSION) @@ -135,13 +135,13 @@ $(NETTLE_DIR)/.installed: $(NETTLE_DIR)/.configured cp $(NETTLE_DIR)/libnettle*.dll $(NETTLE_DIR)/libhogweed*.dll $(BIN_DIR)/ touch $@ -GCC_DLLS=/usr/lib/gcc/i686-w64-mingw32/4.9-win32/libgcc_s_sjlj-1.dll +GCC_DLLS_PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin/ +GCC_DLLS=libgcc_s_sjlj-1.dll libwinpthread-1.dll $(GNUTLS_DIR)/.installed: $(GNUTLS_DIR)/.configured make -C $(GNUTLS_DIR) $(SMP) - -cp $(GCC_DLLS) $(GNUTLS_DIR)/tests - -cp $(GCC_DLLS) $(GNUTLS_DIR)/tests/safe-renegotiation - -cp $(GCC_DLLS) $(GNUTLS_DIR)/tests/slow + -for j in $(GNUTLS_DIR)/tests $(GNUTLS_DIR)/tests/safe-renegotiation $(GNUTLS_DIR)/tests/slow;do \ + for i in $(GCC_DLLS);do cp $(GCC_DLLS_PATH)/$$i $$j;done;done sed -i 's/^"$$@" >$$log_file/echo $$@|grep exe >\/dev\/null; if [ $$? == 0 ];then wine "$$@" >$$log_file;else \/bin\/true >$$log_file;fi/g' $(GNUTLS_DIR)/build-aux/test-driver make -C $(GNUTLS_DIR)/tests check $(SMP) make -C $(GNUTLS_DIR) install -i