summarylogtreecommitdiffstats
path: root/pthread_flag.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_flag.patch')
-rw-r--r--pthread_flag.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/pthread_flag.patch b/pthread_flag.patch
new file mode 100644
index 00000000000..de89ce197b6
--- /dev/null
+++ b/pthread_flag.patch
@@ -0,0 +1,15 @@
+diff --git a/wscript b/wscript
+index fb43390a..c71b4969 100644
+--- a/wscript
++++ b/wscript
+@@ -281,8 +281,8 @@ def build(ctx):
+
+ if ctx.env.WITH_CPPTESTS:
+ # missing -lpthread flag on Ubuntu and LinuxMint
+- if platform.dist()[0].lower() in ['debian', 'ubuntu', 'linuxmint'] and not ctx.env.CROSS_COMPILE_MINGW32 and not ctx.env.WITH_STATIC_EXAMPLES:
+- ext_paths = ['/usr/lib/i386-linux-gnu', '/usr/lib/x86_64-linux-gnu']
++ if not ctx.env.CROSS_COMPILE_MINGW32 and not ctx.env.WITH_STATIC_EXAMPLES:
++ ext_paths = ['/usr/lib32', '/usr/lib']
+ ctx.read_shlib('pthread', paths=ext_paths)
+ ctx.env.USES += ' pthread'
+