summarylogtreecommitdiffstats
path: root/pthread_flag.patch
blob: de89ce197b69310a34003972e682007fed6dfb59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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'