[79841] trunk/dports/archivers/zlib

jeremyhu at macports.org jeremyhu at macports.org
Mon Jun 27 16:16:03 PDT 2011


Revision: 79841
          http://trac.macports.org/changeset/79841
Author:   jeremyhu at macports.org
Date:     2011-06-27 16:16:03 -0700 (Mon, 27 Jun 2011)
Log Message:
-----------
zlib: Build fix for clang

Modified Paths:
--------------
    trunk/dports/archivers/zlib/Portfile

Added Paths:
-----------
    trunk/dports/archivers/zlib/files/clang.patch

Modified: trunk/dports/archivers/zlib/Portfile
===================================================================
--- trunk/dports/archivers/zlib/Portfile	2011-06-27 22:47:36 UTC (rev 79840)
+++ trunk/dports/archivers/zlib/Portfile	2011-06-27 23:16:03 UTC (rev 79841)
@@ -28,7 +28,7 @@
 
 minimum_xcodeversions   {8 2.4.1 9 3.1}
 
-patchfiles              patch-Makefile.in.diff
+patchfiles              patch-Makefile.in.diff clang.patch
 
 configure.universal_args
 

Added: trunk/dports/archivers/zlib/files/clang.patch
===================================================================
--- trunk/dports/archivers/zlib/files/clang.patch	                        (rev 0)
+++ trunk/dports/archivers/zlib/files/clang.patch	2011-06-27 23:16:03 UTC (rev 79841)
@@ -0,0 +1,10 @@
+--- configure.orig	2011-06-27 12:15:50.000000000 -0700
++++ configure	2011-06-27 12:16:07.000000000 -0700
+@@ -101,6 +101,7 @@ cflags=${CFLAGS-"-O3"}
+ # to force the asm version use: CFLAGS="-O3 -DASMV" ./configure
+ case "$cc" in
+   *gcc*) gcc=1 ;;
++  *clang*) gcc=1 ;;
+ esac
+ 
+ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110627/35a54186/attachment.html>


More information about the macports-changes mailing list