blob: 8d4a309f0957862ccdce5758b426d9cc1a6ef5a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
don't set the -rpath flag to the install dir as this breaks DESTDIR
--- a/SConstruct
+++ b/SConstruct
@@ -287,7 +287,7 @@ def installdir(dir, add_destdir=True):
# Honor the specified installation prefix in link paths.
if env["sysroot"]:
env.Prepend(LIBPATH=[env["sysroot"] + installdir('libdir', add_destdir=False)])
-if env["shared"]:
+if env["shared"] and env["chrpath"]:
env.Prepend(RPATH=[installdir('libdir')])
# Give deheader a way to set compiler flags
|