summaryrefslogtreecommitdiff
path: root/net-p2p/linuxdcpp/files/patch-SConstruct
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2014-06-18 12:23:54 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2014-06-18 12:23:54 +0000
commit8598b0c728bd048bbbb670edd55c5167ca16f2d4 (patch)
treeb13ab789338df5f64b85c19f40f576b66cd9cff9 /net-p2p/linuxdcpp/files/patch-SConstruct
parent- Update to 0.51 (diff)
Fix port so it builds again. Did some minor housekeeping while being there.
PR: 190600 Reviewed by: bapt Approved by: bapt
Diffstat (limited to 'net-p2p/linuxdcpp/files/patch-SConstruct')
-rw-r--r--net-p2p/linuxdcpp/files/patch-SConstruct12
1 files changed, 12 insertions, 0 deletions
diff --git a/net-p2p/linuxdcpp/files/patch-SConstruct b/net-p2p/linuxdcpp/files/patch-SConstruct
index 360a88eeced2..20fa13e02dd2 100644
--- a/net-p2p/linuxdcpp/files/patch-SConstruct
+++ b/net-p2p/linuxdcpp/files/patch-SConstruct
@@ -17,6 +17,18 @@
BoolVariable('profile', 'Compile the program with profiling information', 0),
PathVariable('PREFIX', 'Compile the program with PREFIX as the root for installation', '/usr/local', PathVariable.PathIsDir),
('FAKE_ROOT', 'Make scons install the program under a fake root', '')
+@@ -131,7 +131,10 @@
+ env['CC'] = os.environ['CC']
+
+ if os.environ.has_key('CXXFLAGS'):
+- env['CPPFLAGS'] = env['CXXFLAGS'] = os.environ['CXXFLAGS'].split()
++ env['CXXFLAGS'] = os.environ['CXXFLAGS'].split()
++
++if os.environ.has_key('CPPFLAGS'):
++ env['CPPFLAGS'] = os.environ['CPPFLAGS'].split()
+
+ if os.environ.has_key('LDFLAGS'):
+ env['LINKFLAGS'] = os.environ['LDFLAGS'].split()
@@ -139,6 +140,12 @@
if os.environ.has_key('CFLAGS'):
env['CFLAGS'] = os.environ['CFLAGS'].split()