Revision
145322
Author
jeremyhu@macports.org
Date
2016-01-31 17:14:20 -0800 (Sun, 31 Jan 2016)

Log Message

xkbcomp: Only add -Wno-string-compare when using clang (#50198 followup)

Modified Paths

Diff

Modified: trunk/dports/x11/xkbcomp/Portfile (145321 => 145322)


--- trunk/dports/x11/xkbcomp/Portfile	2016-02-01 00:10:45 UTC (rev 145321)
+++ trunk/dports/x11/xkbcomp/Portfile	2016-02-01 01:14:20 UTC (rev 145322)
@@ -32,7 +32,9 @@
 configure.args      --disable-silent-rules
 
 # http://trac.macports.org/ticket/50198
-configure.cflags-append -Wno-string-compare 
+if {[string match *clang* ${configure.cc}]} {
+    configure.cflags-append -Wno-string-compare 
+}
 
 livecheck.type      regex
 livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}