码迷,mamicode.com
首页 > Windows程序 > 详细

mingw zlib-1.2.11 win32-static.patch

时间:2017-10-13 00:44:02      阅读:37      评论:0      收藏:0      [点我收藏+]

标签:red   test   libc   ++   sha   mkdir   stat   amp   -shared   

diff --git a/Makefile.in b/Makefile.in
index 1852192..c88f5b5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -310,12 +310,12 @@ install-libs: $(LIBS)
 	[email protected] [ ! -d $(DESTDIR)$(man3dir)      ]; then mkdir -p $(DESTDIR)$(man3dir); fi
 	[email protected] [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi
 	rm -f $(DESTDIR)$(libdir)/$(STATICLIB)
-	cp $(STATICLIB) $(DESTDIR)$(libdir)
+	[ -z ‘$(STATICLIB)‘  ] || cp $(STATICLIB)  $(DESTDIR)$(libdir)
 	chmod 644 $(DESTDIR)$(libdir)/$(STATICLIB)
 	[email protected]($(RANLIB) $(DESTDIR)$(libdir)/libz.a || true) >/dev/null 2>&1
 	[email protected] test -n "$(SHAREDLIBV)"; then  	  rm -f $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV); -	  cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir); +	  [ -z ‘$(SHAREDLIBV)‘ ] || cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir);  	  echo "cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)";  	  chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV);  	  echo "chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV)"; diff --git a/configure b/configure
index e974d1f..f023947 100755
--- a/configure
+++ b/configure
@@ -215,10 +215,7 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then
   CYGWIN* | Cygwin* | cygwin* | OS/2*)
         EXE=‘.exe‘ ;;
   MINGW* | mingw*)
-# temporary bypass
         rm -f $test.[co] $test $test$shared_ext
-        echo "Please use win32/Makefile.gcc instead." | tee -a configure.log
-        leave 1
         LDSHARED=${LDSHARED-"$cc -shared"}
         LDSHAREDLIBC=""
         EXE=‘.exe‘ ;;
-- 
2.9.3

mingw zlib-1.2.11 win32-static.patch

标签:red   test   libc   ++   sha   mkdir   stat   amp   -shared   

(0)
(0)
   
举报
评论 一句话评论(0
0条  
登录后才能评论!
© 2014 mamicode.com 版权所有 京ICP备13008772号-2
迷上了代码!