diff options
author | Fred Wright <fw@fwright.net> | 2018-11-20 15:17:40 -0800 |
---|---|---|
committer | Fred Wright <fw@fwright.net> | 2018-11-20 15:23:26 -0800 |
commit | cb8cfa7bb02b15e529a1772d7e106487aaeaf032 (patch) | |
tree | 18b008f200a4755691756bea6c5082d53319a483 /SConstruct | |
parent | 9185aa9f763de5a5cde13e264399b9e6bfff62f1 (diff) | |
download | gpsd-cb8cfa7bb02b15e529a1772d7e106487aaeaf032.tar.gz |
test_mktime: Fix build on platforms needing librt.
On some older plaforms, clock_gettime() is contained in librt, thus
requiring linking with it. A mechanism already exists for doing this
where needed, but it was missing from the recipe for test_mktime.
TESTED:
On a BeagleBone running Debian 7, test_mktime now builds successfully.
It still needs another fix for platforms with a 32-bit time_t.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1355,7 +1355,7 @@ test_matrix = env.Program('tests/test_matrix', ['tests/test_matrix.c'], LIBS=['gpsd', 'gps_static'], parse_flags=gpsdflags) test_mktime = env.Program('tests/test_mktime', ['tests/test_mktime.c'], - LIBS=['gps_static'], parse_flags=["-lm"]) + LIBS=['gps_static'], parse_flags=["-lm"] + rtlibs) test_packet = env.Program('tests/test_packet', ['tests/test_packet.c'], LIBS=['gpsd', 'gps_static'], parse_flags=gpsdflags) |