summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2018-11-20 15:17:40 -0800
committerFred Wright <fw@fwright.net>2018-11-20 15:23:26 -0800
commitcb8cfa7bb02b15e529a1772d7e106487aaeaf032 (patch)
tree18b008f200a4755691756bea6c5082d53319a483 /SConstruct
parent9185aa9f763de5a5cde13e264399b9e6bfff62f1 (diff)
downloadgpsd-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--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index a958cc3f..0c3cd247 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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)