gpsd-02-sconstruct-disable-rpath.patch 913 B

1234567891011121314151617181920
  1. Disable addition of RPATH to the generated libraries
  2. Signed-off-by: Simon Dawson <spdawson@gmail.com>
  3. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  4. diff -Nurp a/SConstruct b/SConstruct
  5. --- a/SConstruct 2013-11-22 13:10:01.000000000 +0000
  6. +++ b/SConstruct 2013-11-23 11:26:57.698486777 +0000
  7. @@ -299,11 +299,6 @@ if env["sysroot"]:
  8. # system default load path. /lib and /usr/lib should always be on
  9. # this; listing them explicitly is a fail-safe against this ldconfig
  10. # invocation not doing what we expect.
  11. -if env["shared"]:
  12. - sysrpath = Split(_getoutput("ldconfig -v -N -X 2>/dev/null | sed -n -e '/^\//s/://p'"))
  13. - if env["libdir"] not in ["/usr/lib", "/lib"] + sysrpath:
  14. - announce("Prepending %s to RPATH." % installdir('libdir', False))
  15. - env.Prepend(RPATH=[installdir('libdir')])
  16. # Give deheader a way to set compiler flags
  17. if 'MORECFLAGS' in os.environ: