diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-19 15:07:17 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-19 15:07:17 -0400 |
commit | 02d75d9993df0e1dbf11c30a6772c6e6d77c2c69 (patch) | |
tree | fc6563a03055a3c6bb230c19d1f096db2e8290a5 /SConstruct | |
parent | 9c6b521ed53a344b8738d9b9fe030a4cd0136714 (diff) | |
download | gpsd-02d75d9993df0e1dbf11c30a6772c6e6d77c2c69.tar.gz |
Simplify RPATH hacking, getting rid of the ldconfig stuff.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |