waf : use LINKFLAGS for pthread

-pthread is the one supposed to be used because it defines pre-defined
macros as -lpthread doesn't, like was done in
This commit is contained in:
pkancir 2016-01-14 10:04:33 +01:00 committed by Lucas De Marchi
parent 3a24531ade
commit 85f0ef9265
2 changed files with 3 additions and 5 deletions

View File

@ -91,9 +91,8 @@ def sitl(env):
env.LIB += [
'm',
'pthread',
]
env.LINKFLAGS += ['-pthread',]
env.AP_LIBRARIES += [
'AP_HAL_SITL',
'SITL',
@ -114,10 +113,9 @@ def linux(env):
env.LIB += [
'm',
'pthread',
'rt',
]
env.LINKFLAGS += ['-pthread',]
env.AP_LIBRARIES = [
'AP_HAL_Linux',
]

View File

@ -91,7 +91,7 @@ def configure(cfg):
env.INCLUDES_GBENCHMARK = [prefix_node.make_node('include').abspath()]
env.LIBPATH_GBENCHMARK = [prefix_node.make_node('lib').abspath()]
env.LIB_GBENCHMARK = ['benchmark','pthread']
env.LIB_GBENCHMARK = ['benchmark']
env.HAS_GBENCHMARK = True