From d56e1a3fcdd3e8c5af5c42389318126024ea7a1f Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 25 Nov 2010 01:45:32 +0100 Subject: [PATCH] No -rdynamic and -pthread flags when building with mingw --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 87ac736c7a..e26c423bef 100644 --- a/wscript +++ b/wscript @@ -194,7 +194,7 @@ def configure(conf): conf.check(lib=['bfd', 'opagent'], uselib_store="OPROFILE") conf.check(lib='dl', uselib_store='DL') - if not sys.platform.startswith("sunos") and not sys.platform.startswith("cygwin"): + if not sys.platform.startswith("sunos") and not sys.platform.startswith("cygwin") and not sys.platform.startswith("win32"): conf.env.append_value("CCFLAGS", "-rdynamic") conf.env.append_value("LINKFLAGS_DL", "-rdynamic") @@ -323,7 +323,7 @@ def configure(conf): conf.env.append_value ('CCFLAGS', '-threads') conf.env.append_value ('CXXFLAGS', '-threads') #conf.env.append_value ('LINKFLAGS', ' -threads') - elif not sys.platform.startswith("cygwin"): + elif not sys.platform.startswith("cygwin") and not sys.platform.startswith("win32"): threadflags='-pthread' conf.env.append_value ('CCFLAGS', threadflags) conf.env.append_value ('CXXFLAGS', threadflags)