[109098] trunk/dports/science/alliance/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Wed Aug 7 17:55:30 PDT 2013


Revision: 109098
          https://trac.macports.org/changeset/109098
Author:   jeremyhu at macports.org
Date:     2013-08-07 17:55:30 -0700 (Wed, 07 Aug 2013)
Log Message:
-----------
alliance: Match configure.compiler better

Modified Paths:
--------------
    trunk/dports/science/alliance/Portfile

Modified: trunk/dports/science/alliance/Portfile
===================================================================
--- trunk/dports/science/alliance/Portfile	2013-08-08 00:51:05 UTC (rev 109097)
+++ trunk/dports/science/alliance/Portfile	2013-08-08 00:55:30 UTC (rev 109098)
@@ -37,14 +37,14 @@
 destroot.env-append     YACC='/usr/bin/yacc'
 
 # compiler_issue
-if {${configure.compiler} == "clang"} {
-    # adding -Wno-return-type to clang's CFLAGS to prevent error on missing return statements
-    # cf. http://trac.macports.org/ticket/32947
+if {[string match *clang* ${configure.compiler}]} {
+    # Missing return statements should really be fixed.
+    # If you care about this port, fix the real issue...    
     configure.cflags-append -Wno-return-type
+}
 
-}
-if {${configure.compiler} == "clang" ||
-    ${configure.compiler} == "llvm-gcc-4.2"} {
+if {[string match *clang* ${configure.compiler}] ||
+    [string match *llvm-gcc-4.2* ${configure.compiler}]} {
     # removing -O2 in nero/src in order to correctly export symbols in MDRGrid.o
     # cf. http://llvm.org/bugs/show_bug.cgi?id=7445
     # cf. http://trac.macports.org/ticket/32947#comment:3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130807/b984dda7/attachment.html>


More information about the macports-changes mailing list