From d3d4b2e8b4fd71cb48e9c83ef5a8b86f486304ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20B=C3=B6ker?= Date: Sat, 6 Apr 2019 18:50:22 +0200 Subject: [PATCH] Never build a relocatable rakudo on OpenBSD See https://github.com/rakudo/rakudo/issues/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. --- Configure.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Configure.pl b/Configure.pl index 6663a9bf613..d4d7d978012 100755 --- a/Configure.pl +++ b/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= 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= When given, use for searching build tools here, e.g. nqp, java, node etc. --sysroot= When given, use for searching runtime components here