Skip to content

Commit

Permalink
Don't use add any RPATH compile flags when installing to /usr
Browse files Browse the repository at this point in the history
Do it just the way MoarVM also does it. The RPATH is not necessary in that
case, as the libs will be in the library search anyways and having a
rogue RPATH is bad style and trips up some packaging tools.
  • Loading branch information
PatZim committed Jul 18, 2019
1 parent f66c238 commit 1e0220f
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 1e0220f

Please sign in to comment.