diff options
author | David Bremner <bremner@debian.org> | 2012-03-03 20:33:47 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2019-08-13 08:04:39 -0300 |
commit | 5866d7efef412faf0b0aa380751298a420d3d395 (patch) | |
tree | d262e472472f51364d906504f13e3072daf880f1 | |
parent | 0d7cd7ba61412869853d0da11078a8656c495edc (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; |