diff options
author | David Bremner <bremner@debian.org> | 2012-03-03 20:33:47 -0400 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2024-03-07 19:25:38 +0100 |
commit | 479208674a8e7d7dbf7c2361f5877f441719e4d7 (patch) | |
tree | 99c7516407467715ba901ee1c95e33a0e4b21ba5 | |
parent | c74119aaf8afb31aaefd2bd35836338318bf3b5f (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; |