Patchwork [2/3] gpsd: add patch to disable rpath

login
register
mail settings
Submitter Thomas Petazzoni
Date July 24, 2012, 10:10 p.m.
Message ID <1343167832-14198-2-git-send-email-thomas.petazzoni@free-electrons.com>
Download mbox | patch
Permalink /patch/173057/
State Accepted
Headers show

Comments

Thomas Petazzoni - July 24, 2012, 10:10 p.m.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 .../gpsd/gpsd-03-sconstruct-disable-rpath.patch    |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 package/gpsd/gpsd-03-sconstruct-disable-rpath.patch
Simon Dawson - July 25, 2012, 8:50 a.m.
On 24 July 2012 23:10, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  .../gpsd/gpsd-03-sconstruct-disable-rpath.patch    |   17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>  create mode 100644 package/gpsd/gpsd-03-sconstruct-disable-rpath.patch

Acked-by: Simon Dawson <spdawson@gmail.com>

Patch

diff --git a/package/gpsd/gpsd-03-sconstruct-disable-rpath.patch b/package/gpsd/gpsd-03-sconstruct-disable-rpath.patch
new file mode 100644
index 0000000..5476450
--- /dev/null
+++ b/package/gpsd/gpsd-03-sconstruct-disable-rpath.patch
@@ -0,0 +1,17 @@ 
+Disable addition of RPATH to the generated libraries
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/SConstruct
+===================================================================
+--- a/SConstruct
++++ b/SConstruct
+@@ -273,8 +273,6 @@
+     env.Prepend(LIBPATH=[installdir('libdir')])
+ else:
+     env.Prepend(LIBPATH=[env["sysroot"] + installdir('libdir')])
+-if env["shared"]:
+-    env.Prepend(RPATH=[installdir('libdir')])
+ 
+ # Give deheader a way to set compiler flags
+ if 'MORECFLAGS' in os.environ: