summaryrefslogtreecommitdiff
path: root/tools/patches/waflib.patch
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-02-23 14:51:56 +0100
committerRobin Gareus <robin@gareus.org>2020-02-23 16:21:50 +0100
commit96ef1dc0ed9862bf4937d182f789edd20c17581f (patch)
tree6851918f213f836e3e4de0bb6cccfa5a270b0ca2 /tools/patches/waflib.patch
parent3e77680a57ee28571ec5558845df2ad82246741a (diff)
Cleanup cource tree: collect patches
Diffstat (limited to 'tools/patches/waflib.patch')
-rw-r--r--tools/patches/waflib.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/patches/waflib.patch b/tools/patches/waflib.patch
new file mode 100644
index 0000000000..c5f2f18c83
--- /dev/null
+++ b/tools/patches/waflib.patch
@@ -0,0 +1,13 @@
+diff --git a/waflib/Tools/c_config.py b/waflib/Tools/c_config.py
+index ee1c5c2..0672f3d 100644
+--- a/waflib/Tools/c_config.py
++++ b/waflib/Tools/c_config.py
+@@ -150,6 +150,8 @@ def parse_flags(self, line, uselib, env=None, force_static=False):
+ elif st == '-L':
+ if not ot: ot = lst.pop(0)
+ appu('LIBPATH_' + uselib, [ot])
++ elif x.startswith('-std=c++'):
++ app('CXXFLAGS_' + uselib, [x])
+ elif x == '-pthread' or x.startswith('+') or x.startswith('-std'):
+ app('CFLAGS_' + uselib, [x])
+ app('CXXFLAGS_' + uselib, [x])