[89873] trunk/dports/devel/lua-md5/Portfile
and.damore at macports.org
and.damore at macports.org
Mon Feb 13 09:47:03 PST 2012
Revision: 89873
http://trac.macports.org/changeset/89873
Author: and.damore at macports.org
Date: 2012-02-13 09:47:03 -0800 (Mon, 13 Feb 2012)
Log Message:
-----------
port lua-md5: clang doesn't accept -O6 optimization flag, patching according to $xcodeversion
Modified Paths:
--------------
trunk/dports/devel/lua-md5/Portfile
Modified: trunk/dports/devel/lua-md5/Portfile
===================================================================
--- trunk/dports/devel/lua-md5/Portfile 2012-02-13 17:20:06 UTC (rev 89872)
+++ trunk/dports/devel/lua-md5/Portfile 2012-02-13 17:47:03 UTC (rev 89873)
@@ -28,6 +28,11 @@
post-patch {
eval file copy [glob -directory ${worksrcpath}/src des56.{h,c}] ${worksrcpath}/tests/DES56
+
+ # clang doesn't support -O6
+ if {[vercmp $xcodeversion 4.1] >= 0} {
+ reinplace "s| -O6||" ${worksrcpath}/tests/DES56/makefile
+ }
}
variant universal {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120213/ddee3754/attachment.html>
More information about the macports-changes
mailing list