Skip to content

Commit

Permalink
Merge pull request #3068 from patzim/no-usr-rpath
Browse files Browse the repository at this point in the history
Don't use add any RPATH compile flags when installing to /usr
  • Loading branch information
patrickbkr committed Jul 18, 2019
2 parents c581be3 + 1e0220f commit 085ed2f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tools/lib/NQP/Config/Rakudo.pm
Expand Up @@ -360,12 +360,14 @@ sub configure_moar_backend {
$config->{ldflags} = $nqp_config->{'moar::ldflags'};
$config->{ldflags} =~ s/\Q$nqp_config->{'moar::ldrpath'}\E ?//;
$config->{ldflags} =~ s/\Q$nqp_config->{'moar::ldrpath_relocatable'}\E ?//;
$config->{ldflags} .= ' '
. (
$config->{relocatable} eq 'reloc'
? $nqp_config->{'moar::ldrpath_relocatable'}
: $nqp_config->{'moar::ldrpath'}
);
if ( $config->{prefix} ne '/usr' ) {
$config->{ldflags} .= ' '
. (
$config->{relocatable} eq 'reloc'
? $nqp_config->{'moar::ldrpath_relocatable'}
: $nqp_config->{'moar::ldrpath'}
);
}
$config->{ldlibs} = $nqp_config->{'moar::ldlibs'};
$config->{'mingw_unicode'} = '';

Expand Down

0 comments on commit 085ed2f

Please sign in to comment.