summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-26 13:31:36 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-26 13:31:36 -0400
commita7a6fb3f33fa24ba7d538a6be1d4b7f898c72f32 (patch)
tree6e043947b13e34d0bf0290205bb849dde6b624fa
parentdbcb211376723ca1ed0a87a42dd8a23b388cb7f1 (diff)
downloadgpsd-a7a6fb3f33fa24ba7d538a6be1d4b7f898c72f32.tar.gz
Eliminate a really annoying build glitch. All regression tests pass.
If you put -lgps in a link line, it's going to find the static library first. This is a problem if you're building a shared librar you get cryptic messages like relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index aea9cc50..7203c647 100644
--- a/SConstruct
+++ b/SConstruct
@@ -889,7 +889,7 @@ compiled_gpsdlib = Library(env=env,
target="gpsd",
sources=libgpsd_sources,
version=libgpsd_version,
- parse_flags=[ "-lm", "-lgps" ] + usblibs + rtlibs + bluezlibs)
+ parse_flags=[ "-lm"] + usblibs + rtlibs + bluezlibs)
libraries = [compiled_gpslib, compiled_gpsdlib]