[134121] trunk/dports/science/lparse
larryv at macports.org
larryv at macports.org
Wed Mar 18 14:04:16 PDT 2015
Revision: 134121
https://trac.macports.org/changeset/134121
Author: larryv at macports.org
Date: 2015-03-18 14:04:15 -0700 (Wed, 18 Mar 2015)
Log Message:
-----------
lparse: Respect CXXFLAGS and LDFLAGS (#47196)
But maintain the hard-coded -O3 optimization.
Modified Paths:
--------------
trunk/dports/science/lparse/Portfile
Added Paths:
-----------
trunk/dports/science/lparse/files/respect-flags.patch
Modified: trunk/dports/science/lparse/Portfile
===================================================================
--- trunk/dports/science/lparse/Portfile 2015-03-18 21:04:13 UTC (rev 134120)
+++ trunk/dports/science/lparse/Portfile 2015-03-18 21:04:15 UTC (rev 134121)
@@ -29,9 +29,13 @@
sha256 886d29723f7188296e48584a4a32b8f111414acb7ca8490af28ef6b7f1717298
patchfiles fix-bison-version-detection.patch \
+ respect-flags.patch \
fix-recursive-make.patch \
avoid-namespace-collisions.patch
+# Match default value from configure.
+configure.optflags -O3
+
# this configure argument is only used for installing
configure.pre_args --prefix=${destroot}${prefix}/bin
Added: trunk/dports/science/lparse/files/respect-flags.patch
===================================================================
--- trunk/dports/science/lparse/files/respect-flags.patch (rev 0)
+++ trunk/dports/science/lparse/files/respect-flags.patch 2015-03-18 21:04:15 UTC (rev 134121)
@@ -0,0 +1,18 @@
+Yes, I'm setting the CFLAGS makefile variable to $CXXFLAGS. This build
+system likes to pretend that it's using a C compiler, for some reason.
+
+Index: configure
+===================================================================
+--- configure.orig
++++ configure
+@@ -124,8 +124,8 @@ if ($debug_makefile) {
+ print OUT "CFLAGS=-g -Wall\n";
+ print OUT "LDFLAGS=-g -Wall\n";
+ } else {
+- print OUT "CFLAGS=-O3\n";
+- print OUT "LDFLAGS=-O3\n";
++ print OUT "CFLAGS=$ENV{'CXXFLAGS'}\n";
++ print OUT "LDFLAGS=$ENV{'LDFLAGS'}\n";
+ }
+
+ close OUT;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150318/32e78b53/attachment.html>
More information about the macports-changes
mailing list