summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorBernd Zeimetz <bernd@bzed.de>2012-04-30 22:57:01 +0200
committerBernd Zeimetz <bernd@bzed.de>2012-04-30 22:57:32 +0200
commit3e2bfb792d13f773eb7cb97c1cfef9e287bc6f34 (patch)
tree5fa08e1d286765cbef4a078cb38190dd17d7124c /SConstruct
parenta513ee26a3a4903fb1acc551267ce92be01d60c5 (diff)
downloadgpsd-3e2bfb792d13f773eb7cb97c1cfef9e287bc6f34.tar.gz
Fix handling of -lcap and -lrt.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 4 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index 22bc9f4c..0b8ef4b9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -462,10 +462,10 @@ else:
if config.CheckLib('libcap'):
confdefs.append("#define HAVE_LIBCAP 1\n")
# System library - no special flags
- rtlibs = ["-lcap"]
+ caplibs = ["-lcap"]
else:
confdefs.append("/* #undef HAVE_LIBCAP */\n")
- rtlibs = []
+ caplibs = []
if env['dbus_export'] and config.CheckPKG('dbus-1'):
confdefs.append("#define HAVE_DBUS 1\n")
@@ -774,7 +774,7 @@ compiled_gpslib = Library(env=env,
target="gps",
sources=libgps_sources,
version=libgps_version,
- parse_flags=dbus_libs)
+ parse_flags=dbus_libs + rtlibs)
env.Clean(compiled_gpslib, "gps_maskdump.c")
compiled_gpsdlib = Library(env=env,
@@ -812,7 +812,7 @@ if qt_env:
# The libraries have dependencies on system libraries
gpslibs = ["-lgps", "-lm"]
-gpsdlibs = ["-lgpsd"] + usblibs + bluezlibs + gpslibs
+gpsdlibs = ["-lgpsd"] + usblibs + bluezlibs + gpslibs + caplibs
# Source groups