--- SConstruct.orig 2015-03-14 11:24:41 UTC +++ SConstruct @@ -305,16 +305,6 @@ def installdir(dir, add_destdir=True): wrapped.replace("/usr/lib/systemd", "/lib/systemd") return wrapped -# Honor the specified installation prefix in link paths. -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 -# minimum default load path. -if env["shared"]: - if env["libdir"] not in ["/usr/lib", "/lib"]: - env.Prepend(RPATH=[installdir('libdir')]) - # Give deheader a way to set compiler flags if 'MORECFLAGS' in os.environ: env.Append(CFLAGS=Split(os.environ['MORECFLAGS']))