Skip to content

Commit

Permalink
Never build a relocatable rakudo on AIX.
Browse files Browse the repository at this point in the history
AIX has no support for rpath $ORIGIN or any similar mechanism. Thus
dynamically locating the libmoar.so relative to the executable path is
impossible in the C based perl6 runner. Once building a static moar
(without libmoar.so) is possible we can use that instead.
  • Loading branch information
PatZim committed Mar 20, 2019
1 parent 1add622 commit 1d53897
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Configure.pl
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@
close($CONFIG_STATUS);
}

# Relocatability is not supported on AIX.
$options{'no-relocatable'} = 1 if $^O eq 'aix';

$config{prefix} = $prefix;
$config{libdir} = $options{libdir};
$config{sdkroot} = $options{sdkroot} || '';
Expand Down Expand Up @@ -445,6 +448,7 @@ sub print_help {
--libdir=<path> Install architecture-specific files in dir; Perl6 modules included
--no-relocatable
Create a perl6 with a fixed NQP and Perl6 home dir instead of dynamically identifying it
(On AIX MoarVM is always built non-relocatable, since AIX misses a necessary mechanism.)
--sdkroot=<path> When given, use for searching build tools here, e.g.
nqp, java, node etc.
--sysroot=<path> When given, use for searching runtime components here
Expand Down

0 comments on commit 1d53897

Please sign in to comment.