[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH] Remove hard-coded LIBATH='.'. It destroys all the har
From: |
John Hein |
Subject: |
[gpsd-dev] [PATCH] Remove hard-coded LIBATH='.'. It destroys all the hard work done by calling pkg-config earlier. |
Date: |
Tue, 16 Feb 2016 12:41:58 -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 | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/SConstruct b/SConstruct
index 9584c31..2c0cd65 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)
--
1.9.2
- [gpsd-dev] [PATCH] Remove hard-coded LIBATH='.'. It destroys all the hard work done by calling pkg-config earlier.,
John Hein <=