From 8598b0c728bd048bbbb670edd55c5167ca16f2d4 Mon Sep 17 00:00:00 2001 From: Michael Gmelin Date: Wed, 18 Jun 2014 12:23:54 +0000 Subject: Fix port so it builds again. Did some minor housekeeping while being there. PR: 190600 Reviewed by: bapt Approved by: bapt --- net-p2p/linuxdcpp/files/patch-SConstruct | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'net-p2p/linuxdcpp/files/patch-SConstruct') 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() -- cgit v1.2.3