[129076] trunk/dports/audio/flac
jeremyhu at macports.org
jeremyhu at macports.org
Thu Dec 4 15:45:09 PST 2014
Revision: 129076
https://trac.macports.org/changeset/129076
Author: jeremyhu at macports.org
Date: 2014-12-04 15:45:09 -0800 (Thu, 04 Dec 2014)
Log Message:
-----------
flac: Fix build failure if optflags is set to -O0 -g3
Modified Paths:
--------------
trunk/dports/audio/flac/Portfile
Added Paths:
-----------
trunk/dports/audio/flac/files/autoconf-cflags.patch
Modified: trunk/dports/audio/flac/Portfile
===================================================================
--- trunk/dports/audio/flac/Portfile 2014-12-04 23:38:03 UTC (rev 129075)
+++ trunk/dports/audio/flac/Portfile 2014-12-04 23:45:09 UTC (rev 129076)
@@ -5,7 +5,7 @@
name flac
version 1.3.1
-revision 1
+revision 2
categories audio
platforms darwin
license GPL-2+ BSD
@@ -33,7 +33,8 @@
patchfiles patch-nasm.h.diff \
patch-build_lib.mk.diff \
- autoconf-no-xmms.patch
+ autoconf-no-xmms.patch \
+ autoconf-cflags.patch
# Don't link with "-flat_namespace -undefined suppress" on Yosemite and later.
patchfiles-append yosemite-libtool.patch
Added: trunk/dports/audio/flac/files/autoconf-cflags.patch
===================================================================
--- trunk/dports/audio/flac/files/autoconf-cflags.patch (rev 0)
+++ trunk/dports/audio/flac/files/autoconf-cflags.patch 2014-12-04 23:45:09 UTC (rev 129076)
@@ -0,0 +1,17 @@
+https://sourceforge.net/p/flac/bugs/422/
+
+--- configure.ac.orig 2014-11-26 18:45:33.000000000 -0800
++++ configure.ac 2014-12-04 15:41:34.000000000 -0800
+@@ -348,12 +348,8 @@ fi
+
+ if test "x$debug" = xtrue; then
+ CPPFLAGS="-DDEBUG $CPPFLAGS"
+- CFLAGS=$(echo "$CFLAGS" | sed 's/-g//')
+- CFLAGS="-g $CFLAGS"
+ else
+ CPPFLAGS="-DNDEBUG $CPPFLAGS"
+- CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//;s/-g//')
+- CFLAGS="-O3 -funroll-loops $CFLAGS"
+ fi
+
+ XIPH_GCC_VERSION
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141204/0fa136b7/attachment.html>
More information about the macports-changes
mailing list