diff options
author | Fred Wright <fw@fwright.net> | 2016-09-24 17:42:21 -0700 |
---|---|---|
committer | Jon Schlueter <jon.schlueter@gmail.com> | 2016-12-18 22:27:55 -0500 |
commit | 9abf6f9c83b865e389e7fa6fe0044c7556800598 (patch) | |
tree | 4cfcb80b596ed3e7d4520f130437fc71bc4fe84d /SConstruct | |
parent | 0f17495c80f3517ae0e30d9384fc6448f365390a (diff) | |
download | gpsd-9abf6f9c83b865e389e7fa6fe0044c7556800598.tar.gz |
Fixes some build failures of test_gpsmm.
The clock_gettime() function was originally a "second-tier" library
function in Linux, implemented in librt and requiring "-lrt" when
linking. Later versions moved it to libc, with the "-lrt" being
unnecessary. The build recipe for test_gpsmm here was failing to
account for the optional need for the "-lrt", causing it to fail
to build on debian Wheezy.
TESTED:
Now passes "scons build-all check" on a Beaglebone Black running
Debian Wheezy, where test_gpsmm formerly failed to build. Also
retested on OSX 10.9 (where librt doesn't exist) for good measure.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1312,7 +1312,8 @@ else: parse_flags=["-lm"] + rtlibs + usbflags + dbusflags) test_gpsmm = env.Program('test_gpsmm', ['test_gpsmm.cpp'], - LIBS=['gps_static'], LIBPATH='.', parse_flags=["-lm"] + dbusflags) + LIBS=['gps_static'], LIBPATH='.', + parse_flags=["-lm"] + rtlibs + dbusflags) testprogs = [test_bits, test_float, test_geoid, test_libgps, test_matrix, test_mktime, test_packet, test_timespec, test_trig] if env['socket_export']: testprogs.append(test_json) |