gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] timespec_str and test linking


From: Greg Troxel
Subject: [gpsd-dev] timespec_str and test linking
Date: Mon, 23 Sep 2019 21:54:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (berkeley-unix)

I did a build and got timespec_str undefined in test_qgpsmm.  It seems
that is because it doesn't link against -lgps which is where that
function is (recently) defined.   The following makes it build, and I
wonder if it's the right fix.

diff --git a/SConstruct b/SConstruct
index 601db0cbb..acdc54250 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1976,7 +1976,7 @@ if qt_env:
     test_qgpsmm = env.Program('tests/test_qgpsmm', ['tests/test_gpsmm.cpp'],
                               LIBPATH=['.'],
                               OBJPREFIX='qt-',
-                              LIBS=['Qgpsmm'])
+                              LIBS=['Qgpsmm', 'gps'])
     build_qt = qt_env.Alias('build', [compiled_qgpsmmlib, test_qgpsmm])
     qt_env.Default(*build_qt)
     testprogs.append(test_qgpsmm)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]