summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-19 15:07:17 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-19 15:07:17 -0400
commit02d75d9993df0e1dbf11c30a6772c6e6d77c2c69 (patch)
treefc6563a03055a3c6bb230c19d1f096db2e8290a5 /SConstruct
parent9c6b521ed53a344b8738d9b9fe030a4cd0136714 (diff)
downloadgpsd-02d75d9993df0e1dbf11c30a6772c6e6d77c2c69.tar.gz
Simplify RPATH hacking, getting rid of the ldconfig stuff.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 2 insertions, 6 deletions
diff --git a/SConstruct b/SConstruct
index e7c4cd16..80c95f62 100644
--- a/SConstruct
+++ b/SConstruct
@@ -298,13 +298,9 @@ if env["sysroot"]:
env.Prepend(LIBPATH=[env["sysroot"] + installdir('libdir', add_destdir=False)])
# Don't hack RPATH unless libdir points somewhere that is not on the
-# system default load path. /lib and /usr/lib should always be on
-# this; listing them explicitly is a fail-safe against this ldconfig
-# invocation not doing what we expect.
+# minimum default load path.
if env["shared"]:
- sysrpath = Split(_getoutput("ldconfig -v -N -X 2>/dev/null | sed -n -e '/^\//s/://p'"))
- if env["libdir"] not in ["/usr/lib", "/lib"] + sysrpath:
- announce("Prepending %s to RPATH." % installdir('libdir', False))
+ if env["libdir"] not in ["/usr/lib", "/lib"]:
env.Prepend(RPATH=[installdir('libdir')])
# Give deheader a way to set compiler flags