[102115] trunk/dports/comms/libinfinity/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Jan 27 23:24:52 PST 2013


Revision: 102115
          https://trac.macports.org/changeset/102115
Author:   jeremyhu at macports.org
Date:     2013-01-27 23:24:51 -0800 (Sun, 27 Jan 2013)
Log Message:
-----------
libinfinity: Allow build with clang

Modified Paths:
--------------
    trunk/dports/comms/libinfinity/Portfile

Modified: trunk/dports/comms/libinfinity/Portfile
===================================================================
--- trunk/dports/comms/libinfinity/Portfile	2013-01-28 07:14:42 UTC (rev 102114)
+++ trunk/dports/comms/libinfinity/Portfile	2013-01-28 07:24:51 UTC (rev 102115)
@@ -25,9 +25,9 @@
                 port:gnutls \
                 port:libgsasl
 
-if {${configure.compiler} == "clang"} {
-    # libinfinity doesn't build with clang because some functions use g_return_if_fail() where they should use g_return_val_if_fail()
-    configure.compiler llvm-gcc-4.2
+# libinfinity doesn't build with clang because some functions use g_return_if_fail() where they should use g_return_val_if_fail()
+if {[string match *clang* ${configure.compiler}]} {
+    configure.cflags-append -Wno-return-type
 }
 
 # /usr/bin/ranlib: library member: libinftestutil.a(libinfinity-0.5.la) is not an object file (not allowed in a library with multiple architectures)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130127/3b374a3c/attachment.html>


More information about the macports-changes mailing list