Skip to content
Permalink
Browse files

Never build a relocatable rakudo on OpenBSD

See #2818

OpenBSDs implementation of $ORIGIN in rpath is unreliable. Also it misses
a mechanism to determine the executable path in general. So even at
runtime one has a hard time implementing something like this in a robust
manner.
  • Loading branch information...
patzim committed Apr 6, 2019
1 parent 5e8451f commit d3d4b2e8b4fd71cb48e9c83ef5a8b86f486304ce
Showing with 4 additions and 3 deletions.
  1. +4 −3 Configure.pl
@@ -145,8 +145,8 @@
close($CONFIG_STATUS);
}

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

$config{prefix} = $prefix;
$config{libdir} = $options{libdir};
@@ -447,7 +447,8 @@ 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.)
(On AIX and OpenBSD rakudo is always built non-relocatable, since both OS' miss the
necessary mechanism to make this work.)
--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

0 comments on commit d3d4b2e

Please sign in to comment.
You can’t perform that action at this time.