mirror of https://github.com/ArduPilot/ardupilot
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:
parent
3a24531ade
commit
85f0ef9265
|
@ -91,9 +91,8 @@ def sitl(env):
|
||||||
|
|
||||||
env.LIB += [
|
env.LIB += [
|
||||||
'm',
|
'm',
|
||||||
'pthread',
|
|
||||||
]
|
]
|
||||||
|
env.LINKFLAGS += ['-pthread',]
|
||||||
env.AP_LIBRARIES += [
|
env.AP_LIBRARIES += [
|
||||||
'AP_HAL_SITL',
|
'AP_HAL_SITL',
|
||||||
'SITL',
|
'SITL',
|
||||||
|
@ -114,10 +113,9 @@ def linux(env):
|
||||||
|
|
||||||
env.LIB += [
|
env.LIB += [
|
||||||
'm',
|
'm',
|
||||||
'pthread',
|
|
||||||
'rt',
|
'rt',
|
||||||
]
|
]
|
||||||
|
env.LINKFLAGS += ['-pthread',]
|
||||||
env.AP_LIBRARIES = [
|
env.AP_LIBRARIES = [
|
||||||
'AP_HAL_Linux',
|
'AP_HAL_Linux',
|
||||||
]
|
]
|
||||||
|
|
|
@ -91,7 +91,7 @@ def configure(cfg):
|
||||||
|
|
||||||
env.INCLUDES_GBENCHMARK = [prefix_node.make_node('include').abspath()]
|
env.INCLUDES_GBENCHMARK = [prefix_node.make_node('include').abspath()]
|
||||||
env.LIBPATH_GBENCHMARK = [prefix_node.make_node('lib').abspath()]
|
env.LIBPATH_GBENCHMARK = [prefix_node.make_node('lib').abspath()]
|
||||||
env.LIB_GBENCHMARK = ['benchmark','pthread']
|
env.LIB_GBENCHMARK = ['benchmark']
|
||||||
|
|
||||||
env.HAS_GBENCHMARK = True
|
env.HAS_GBENCHMARK = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue