ardupilot/Tools
khancyr 360d9fafb6 waf: force linking of phtread with gbenchmark
There is an issue with gbenchmark and waf on Ubuntu (15.04 and 15.10, ). Waf doesn't link pthread to gbenchmark and linking failed : 

````
[1652/1652] Linking build/linux/libraries/AP_Math/benchmarks/benchmark_matrix.linux
/home/khancyr/Workspace/APM/ardupilot/build/linux/gbenchmark/lib/libbenchmark.a(benchmark.cc.o): dans la fonction « benchmark::RunSpecifiedBenchmarks(benchmark::BenchmarkReporter*) »:
benchmark.cc:(.text+0x2e21): référence indéfinie vers « pthread_create »
/usr/bin/ld generated: référence indéfinie vers « pthread_create »
collect2: error: ld returned 1 exit status

Waf: Leaving directory `/home/khancyr/Workspace/APM/ardupilot/build/linux'
Build failed
 -> task in 'benchmark_matrix.linux' failed (exit status 1): 
    {task 139784788162576: cxxprogram benchmark_matrix.cpp.1.o -> benchmark_matrix.linux}
['/usr/lib/ccache/g++', '-Wl,--gc-sections', 'libraries/AP_Math/benchmarks/benchmark_matrix.cpp.1.o', '-o', '/home/khancyr/Workspace/APM/ardupilot/build/linux/libraries/AP_Math/benchmarks/benchmark_matrix.linux', '-Wl,-Bstatic', '-L.', '-lap', '-Wl,-Bdynamic', '-L/home/khancyr/Workspace/APM/ardupilot/build/linux/gbenchmark/lib', '-lm', '-lpthread', '-lrt', '-lbenchmark']
`````

Adding 'pthread' to env.LIB_GBENCHMARK solve the issue

see https://github.com/diydrones/ardupilot/pull/3460 and https://github.com/diydrones/ardupilot/issues/3461
2016-01-12 18:05:46 -02:00
..
APM2_2560_bootloader Tools: fixup line endings 2014-04-15 15:55:15 +09:00
APM_radio_test Tools: fixup line endings 2014-04-15 15:55:15 +09:00
ArduPPM Tools: standardize inclusion of libaries headers 2015-08-11 16:28:41 +10:00
ArduPilotMega_demo Tools: fixup line endings 2014-04-15 15:55:15 +09:00
ArdupilotMegaPlanner Mission planner moved notice 2013-02-05 18:24:05 +08:00
CHDK-Scripts CHDK script changes 2014-12-26 16:04:35 +09:00
CPUInfo Global: don't link with AP_Progmem 2015-12-27 15:58:12 -02:00
CodeStyle CodeStyle: xmlpretty.py considers nodes with only text children to be one-liners 2016-01-07 17:39:09 +11:00
Failsafe Tools: standardize inclusion of libaries headers 2015-08-11 16:28:41 +10:00
FlightGear Tools: standardize inclusion of libaries headers 2015-08-11 16:28:41 +10:00
Frame_params Params: add arming check for bebop 2015-12-22 16:50:27 -02:00
GIT_Test autotest: Enable SITL code to call an external ROS simulator for ArduPlane 2015-03-14 09:07:52 +11:00
Hello Global: don't link with AP_Progmem 2015-12-27 15:58:12 -02:00
Linux_HAL_Essentials Linux_HAL_Essentials: Add HC-SR04 README.md 2015-12-01 07:04:10 +11:00
LogAnalyzer LogAnalyzer: adjust for change in vehicle definition MSG string 2015-10-15 09:40:25 +09:00
PPM_decoding Tools: fixup line endings 2014-04-15 15:55:15 +09:00
PXF Tools: Add PXF enable and check CS scripts 2014-07-14 09:29:36 +10:00
Replay Replay: fix replay build 2015-12-29 10:46:35 -08:00
SerialProxy Tools Serial Proxy: fixup line endings 2014-04-15 15:55:30 +09:00
Xplane
ardupilotwaf waf: force linking of phtread with gbenchmark 2016-01-12 18:05:46 -02:00
autotest SITL: add NFSC flying club location 2016-01-12 20:05:41 +09:00
gittools Tools: gittools: add git-subsystems-split 2015-09-09 10:50:35 +10:00
scripts travis: unset CXX and CC at the beginning 2016-01-11 16:31:59 -02:00
vagrant Tools: fix up URL in readme to SITL via Vagrant doc 2015-11-30 09:55:07 +09:00