2
1

0002-sconstruct-disable-rpath.patch 658 B

123456789101112131415161718
  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 2014-08-23 18:41:09.000000000 +0100
  6. +++ b/SConstruct 2014-08-25 09:46:53.754364989 +0100
  7. @@ -300,9 +300,6 @@ if env["sysroot"]:
  8. # Don't hack RPATH unless libdir points somewhere that is not on the
  9. # minimum default load path.
  10. -if env["shared"]:
  11. - if env["libdir"] not in ["/usr/lib", "/lib"]:
  12. - env.Prepend(RPATH=[installdir('libdir')])
  13. # Give deheader a way to set compiler flags
  14. if 'MORECFLAGS' in os.environ: