8251cfcbecb7123865627214cf06b28820f805e8
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gpsd / 0002-sconstruct-disable-rpath.patch
1 Disable addition of RPATH to the generated libraries
2
3 Signed-off-by: Simon Dawson <spdawson@gmail.com>
4 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5
6 diff -Nurp a/SConstruct b/SConstruct
7 --- a/SConstruct        2014-08-23 18:41:09.000000000 +0100
8 +++ b/SConstruct        2014-08-25 09:46:53.754364989 +0100
9 @@ -300,9 +300,6 @@ if env["sysroot"]:
10  
11  # Don't hack RPATH unless libdir points somewhere that is not on the
12  # minimum default load path.
13 -if env["shared"]:
14 -    if env["libdir"] not in ["/usr/lib", "/lib"]:
15 -        env.Prepend(RPATH=[installdir('libdir')])
16  
17  # Give deheader a way to set compiler flags
18  if 'MORECFLAGS' in os.environ: