[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH] Remove hard-code LIBATH='.'. It destroys all the hard
From: |
John Hein |
Subject: |
[gpsd-dev] [PATCH] Remove hard-code LIBATH='.'. It destroys all the hard work done by calling pkg-config earlier. |
Date: |
Mon, 15 Feb 2016 17:21:04 -0700 |
Otherwise, you can get link errors like the following if some libs
are not in the compiler's default library search path:
/usr/bin/ld: cannot find -ldbus-1
---
SConstruct | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/SConstruct b/SConstruct
index 9584c31..827e534 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1012,37 +1012,37 @@ gpsmon_sources = [
## Production programs
gpsd = env.Program('gpsd', gpsd_sources,
- LIBS=['gpsd', 'gps_static'], LIBPATH='.',
+ LIBS=['gpsd', 'gps_static'],
parse_flags=gpsdflags+gpsflags)
gpsdecode = env.Program('gpsdecode', ['gpsdecode.c'],
- LIBS=['gpsd', 'gps_static'], LIBPATH='.',
+ LIBS=['gpsd', 'gps_static'],
parse_flags=gpsdflags+gpsflags)
gpsctl = env.Program('gpsctl', ['gpsctl.c'],
- LIBS=['gpsd', 'gps_static'], LIBPATH='.',
+ LIBS=['gpsd', 'gps_static'],
parse_flags=gpsdflags+gpsflags)
gpsmon = env.Program('gpsmon', gpsmon_sources,
- LIBS=['gpsd', 'gps_static'], LIBPATH='.',
+ LIBS=['gpsd', 'gps_static'],
parse_flags=gpsdflags + gpsflags + ncurseslibs)
gpsdctl = env.Program('gpsdctl', ['gpsdctl.c'],
- LIBS=['gps_static'], LIBPATH='.',
+ LIBS=['gps_static'],
parse_flags=gpsflags)
gpspipe = env.Program('gpspipe', ['gpspipe.c'],
- LIBS=['gps_static'], LIBPATH='.',
+ LIBS=['gps_static'],
parse_flags=gpsflags)
gps2udp = env.Program('gps2udp', ['gps2udp.c'],
- LIBS=['gps_static'], LIBPATH='.',
+ LIBS=['gps_static'],
parse_flags=gpsflags)
gpxlogger = env.Program('gpxlogger', ['gpxlogger.c'],
- LIBS=['gps_static'], LIBPATH='.',
+ LIBS=['gps_static'],
parse_flags=gpsflags)
lcdgps = env.Program('lcdgps', ['lcdgps.c'],
- LIBS=['gps_static'], LIBPATH='.',
+ LIBS=['gps_static'],
parse_flags=gpsflags)
cgps = env.Program('cgps', ['cgps.c'],
- LIBS=['gps_static'], LIBPATH='.',
+ LIBS=['gps_static'],
parse_flags=gpsflags + ncurseslibs)
ntpshmmon = env.Program('ntpshmmon', ['ntpshmmon.c'],
- LIBS=['gps_static'], LIBPATH='.',
+ LIBS=['gps_static'],
parse_flags=gpsflags)
binaries = [gpsd, gpsdecode, gpsctl, gpsdctl, gpspipe, gps2udp, gpxlogger,
lcdgps, ntpshmmon]
@@ -1051,26 +1051,26 @@ if env["ncurses"]:
# Test programs - always link locally and statically
test_bits = env.Program('test_bits', ['test_bits.c'],
- LIBS=['gps_static'], LIBPATH='.')
+ LIBS=['gps_static'],
test_float = env.Program('test_float', ['test_float.c'])
test_geoid = env.Program('test_geoid', ['test_geoid.c'],
LIBS=['gpsd', 'gps_static'],
- LIBPATH='.', parse_flags=gpsdflags)
+ parse_flags=gpsdflags)
test_matrix = env.Program('test_matrix', ['test_matrix.c'],
LIBS=['gpsd', 'gps_static'],
- LIBPATH='.', parse_flags=gpsdflags)
+ parse_flags=gpsdflags)
test_mktime = env.Program('test_mktime', ['test_mktime.c'],
- LIBS=['gps_static'], LIBPATH='.',
parse_flags=["-lm"])
+ LIBS=['gps_static'], parse_flags=["-lm"])
test_packet = env.Program('test_packet', ['test_packet.c'],
LIBS=['gpsd', 'gps_static'],
- LIBPATH='.', parse_flags=gpsdflags)
+ parse_flags=gpsdflags)
test_timespec = env.Program('test_timespec', ['test_timespec.c'],
LIBS=['gpsd', 'gps_static'],
- LIBPATH='.', parse_flags=gpsdflags)
+ parse_flags=gpsdflags)
test_trig = env.Program('test_trig', ['test_trig.c'], parse_flags=["-lm"])
# test_libgps for glibc older than 2.17
test_libgps = env.Program('test_libgps', ['test_libgps.c'],
- LIBS=['gps_static'], LIBPATH='.',
parse_flags=["-lm"] + rtlibs + dbusflags)
+ LIBS=['gps_static'], parse_flags=["-lm"] + rtlibs +
dbusflags)
if not env['socket_export']:
announce("test_json not building because socket_export is disabled")
@@ -1078,11 +1078,11 @@ if not env['socket_export']:
else:
test_json = env.Program(
'test_json', ['test_json.c'],
- LIBS=['gps_static'], LIBPATH='.',
+ LIBS=['gps_static'],
parse_flags=["-lm"] + rtlibs + usbflags + dbusflags)
test_gpsmm = env.Program('test_gpsmm', ['test_gpsmm.cpp'],
- LIBS=['gps_static'], LIBPATH='.', parse_flags=["-lm"])
+ LIBS=['gps_static'], parse_flags=["-lm"])
testprogs = [test_bits, test_float, test_geoid, test_libgps, test_matrix,
test_mktime, test_packet, test_timespec, test_trig]
if env['socket_export']:
testprogs.append(test_json)
@@ -1357,7 +1357,7 @@ if manbuilder:
build = env.Alias('build',
[libraries, binaries, python_targets,
"gpsd.php", manpage_targets,
- "libgps.pc", "libgpsd.pc", "gpsd.rules"])
+ "libgps.pc", "gpsd.rules"])
env.Default(*build)
if qt_env:
@@ -1414,7 +1414,7 @@ else:
python_progs_install,
python_egg_info_install]
-pc_install = [env.Install(installdir('pkgconfig'), x) for x in ("libgps.pc",
"libgpsd.pc")]
+pc_install = [env.Install(installdir('pkgconfig'), x) for x in ("libgps.pc")]
if qt_env:
pc_install.append(qt_env.Install(installdir('pkgconfig'), 'Qgpsmm.pc'))
pc_install.append(qt_env.Install(installdir('libdir'), 'libQgpsmm.prl'))
--
1.9.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gpsd-dev] [PATCH] Remove hard-code LIBATH='.'. It destroys all the hard work done by calling pkg-config earlier.,
John Hein <=