summaryrefslogtreecommitdiffstats
path: root/package/meson/0001-Only-fix-RPATH-if-install_rpath-is-not-empty.patch
blob: 03c1944258af4593e1b0a81bfc2316fb7b81468c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 53e4920038d5562b7b672fec8b9469fc02eef4ad Mon Sep 17 00:00:00 2001
From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Date: Thu, 10 May 2018 21:57:49 +0200
Subject: [PATCH] Only fix RPATH if install_rpath is not empty

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
---
 mesonbuild/scripts/meson_install.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/mesonbuild/scripts/meson_install.py b/mesonbuild/scripts/meson_install.py
index 013f2a00..f7ff1dcc 100644
--- a/mesonbuild/scripts/meson_install.py
+++ b/mesonbuild/scripts/meson_install.py
@@ -368,7 +368,13 @@ def install_targets(d):
                     printed_symlink_error = True
         if os.path.isfile(outname):
             try:
-                depfixer.fix_rpath(outname, install_rpath, False)
+                # Buildroot check-host-rpath script expects RPATH
+                # But if install_rpath is empty, it will stripped.
+                # So, preserve it in this case
+                if install_rpath:
+                    depfixer.fix_rpath(outname, install_rpath, False)
+                else:
+                    print("Skipping RPATH fixing")
             except SystemExit as e:
                 if isinstance(e.code, int) and e.code == 0:
                     pass
-- 
2.14.3

OpenPOWER on IntegriCloud