[125506] trunk/dports/textproc/colorer/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Sep 18 19:41:26 PDT 2014


Revision: 125506
          https://trac.macports.org/changeset/125506
Author:   ryandesign at macports.org
Date:     2014-09-18 19:41:26 -0700 (Thu, 18 Sep 2014)
Log Message:
-----------
colorer: only use -Wno-error=address-of-temporary on clang; older compilers have never heard of this option and complain loudly

Modified Paths:
--------------
    trunk/dports/textproc/colorer/Portfile

Modified: trunk/dports/textproc/colorer/Portfile
===================================================================
--- trunk/dports/textproc/colorer/Portfile	2014-09-19 02:39:27 UTC (rev 125505)
+++ trunk/dports/textproc/colorer/Portfile	2014-09-19 02:41:26 UTC (rev 125506)
@@ -51,11 +51,16 @@
 configure.cmd   sh src/libcolorer/linux/configure
 configure.args  --srcdir=.
 
+set extra_cflags "[get_canonical_archflags cc]"
+if {[string match *clang* ${configure.compiler}]} {
+    append extra_cflags " -Wno-error=address-of-temporary"
+}
+
 build.target colorer
 # Yes, this build system uses "CPP" for the C compiler and "LINK" for the C++ compiler.
 build.args          ARCHFLAGS="[get_canonical_archflags]" \
                     CPP=${configure.cc} \
-                    CPPFLAGS_CUSTOM="[get_canonical_archflags] -Wno-error=address-of-temporary" \
+                    CPPFLAGS_CUSTOM="${extra_cflags}" \
                     FLAGS= \
                     LIBINC="/usr/lib/${configure.cxx_stdlib}.dylib" \
                     LINK=${configure.cxx} \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140918/a6136388/attachment.html>


More information about the macports-changes mailing list