summarylogtreecommitdiffstats
path: root/pthread_flag.patch
diff options
context:
space:
mode:
authorEugene Cherny2017-11-12 15:50:26 +0200
committerEugene Cherny2017-11-12 15:50:26 +0200
commitd5df3a9b8f09f77e29f481c7695ba69a6700d56d (patch)
treefd1e7828232c8b7005769f94e8ef55d5f912348d /pthread_flag.patch
downloadaur-d5df3a9b8f09f77e29f481c7695ba69a6700d56d.tar.gz
[init]
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 000000000000..de89ce197b69
--- /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'
+