From cb8cfa7bb02b15e529a1772d7e106487aaeaf032 Mon Sep 17 00:00:00 2001 From: Fred Wright Date: Tue, 20 Nov 2018 15:17:40 -0800 Subject: 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. --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1