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'