summaryrefslogtreecommitdiff
path: root/debian/patches/LDFLAGS.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/LDFLAGS.patch')
-rw-r--r--debian/patches/LDFLAGS.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/LDFLAGS.patch b/debian/patches/LDFLAGS.patch
new file mode 100644
index 0000000..0de9c2a
--- /dev/null
+++ b/debian/patches/LDFLAGS.patch
@@ -0,0 +1,18 @@
+Last-Update: 2012-12-31
+Author: Dmitry Smirnov <onlyjob@member.fsf.org>
+Forwarded: not-needed
+Description: use LDFLAGS from system environment
+
+--- a/SConstruct
++++ b/SConstruct
+@@ -295,9 +295,9 @@
+ env['CXX'] = os.environ['CXX']
+ if os.environ.has_key('CXXFLAGS'):
+ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS'])
+ if os.environ.has_key('LDFLAGS'):
+- env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
++ env['__RPATH'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
+
+ # windows or *nix?
+ if sys.platform == 'win32':
+ print "compiling on Windows"
bgstack15