[80368] trunk/dports/devel/libgcrypt/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Jul 10 11:15:50 PDT 2011


Revision: 80368
          http://trac.macports.org/changeset/80368
Author:   jeremyhu at macports.org
Date:     2011-07-10 11:15:47 -0700 (Sun, 10 Jul 2011)
Log Message:
-----------
libgcrypt: Additional clang build fixes for 1.5.0 regressions

Modified Paths:
--------------
    trunk/dports/devel/libgcrypt/Portfile

Modified: trunk/dports/devel/libgcrypt/Portfile
===================================================================
--- trunk/dports/devel/libgcrypt/Portfile	2011-07-10 17:53:44 UTC (rev 80367)
+++ trunk/dports/devel/libgcrypt/Portfile	2011-07-10 18:15:47 UTC (rev 80368)
@@ -34,6 +34,12 @@
 # Build fix for compilers that default to c99 (clang)
 configure.cflags-append "-std=gnu89"
 
+if {${configure.compiler} == "clang"} {
+	# libgcrypt-1.5.0 does some ugly stuff with thwir udiv_qrnnd macro in mpih-div.c
+	# error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast
+	configure.cflags-append "-fheinous-gnu-extensions"
+}
+
 post-configure {
     if {[variant_isset universal]} {
         system "cd ${worksrcpath} && ed - ${worksrcpath}/config.h < ${filespath}/config.h.ed && touch stamp-h1"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110710/24c81975/attachment.html>


More information about the macports-changes mailing list