diff options
author | David Bremner <bremner@debian.org> | 2012-03-03 20:33:47 -0400 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2022-08-15 15:20:06 +0200 |
commit | 385a8943326488f3bedcc9be6d05b2100080acd4 (patch) | |
tree | bfaed7055d2c1b66ebc98e4c49267cd7d4b52e3e | |
parent | e9c2851352bff4f4e4dfe190e9d47e9e2c1ad977 (diff) |
disable rpath if installing into /usr/lib
rpath isn't needed then, and setting has some undesirable
side-effects, the more obvious being that it prevents relocating the
libraries in the files system.
Gbp-Pq: Name 0002-disable-rpath-if-installing-into-usr-lib.patch
-rw-r--r-- | inc/MyBuilder.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/MyBuilder.pm b/inc/MyBuilder.pm index 2725565..949aec2 100644 --- a/inc/MyBuilder.pm +++ b/inc/MyBuilder.pm @@ -224,8 +224,14 @@ sub ACTION_create_binaries { print STDERR "\n** Creating binaries (",join(", ", map { $_.$EXEEXT } @BINARIES), ")\n"; + my $rpath_arg = ''; + + if ( ($^O !~ /darwin/) && $btparselibdir ne "/usr/lib") { + $rpath_arg = "-Wl,-R${btparselibdir}"; + } + my $extra_linker_flags = sprintf("-Lbtparse/src %s -lbtparse ", - ($^O !~ /darwin/)?"-Wl,-R${btparselibdir}":""); + $rpath_arg); my @toinstall; |