Revision
102470
Author
jeremyhu@macports.org
Date
2013-02-03 20:10:05 -0800 (Sun, 03 Feb 2013)

Log Message

e2fsprogs: Small cleanup

Modified Paths

Diff

Modified: trunk/dports/sysutils/e2fsprogs/Portfile (102469 => 102470)


--- trunk/dports/sysutils/e2fsprogs/Portfile	2013-02-04 03:30:25 UTC (rev 102469)
+++ trunk/dports/sysutils/e2fsprogs/Portfile	2013-02-04 04:10:05 UTC (rev 102470)
@@ -28,6 +28,8 @@
 
 configure.args-append       --enable-bsd-shlibs
 
+# This project is not C99 conformant
+configure.cflags-append     -std=gnu89
 
 if {${name} == ${subport}} {
     configure.args-append       --disable-libuuid \
@@ -39,10 +41,9 @@
     patchfiles-append           patch-lib__Makefile.darwin-lib \
                                 patch-Makefile.in-remove-included-libcomerr.diff
 
-    if {${configure.compiler} == "clang"} {
-        # This project is not C99 conformant and has return type conflicts that
-        # clang complains about
-        configure.cflags-append  "--std=gnu89 -Wno-return-type"
+    if {[string match *clang* ${configure.compiler}]} {
+        # return type conflicts should really be fixed
+        configure.cflags-append  "-Wno-return-type"
     }
 
     pre-build {