From e8cff058daa713a886db0f9238e57038b9b92057 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Wed, 1 Apr 2020 11:37:26 +0200
Subject: Don't use relocatable builds on OpenBSD
---
lib/actions/install.bash | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/lib/actions/install.bash b/lib/actions/install.bash
index c4603ba..23dd91a 100644
--- a/lib/actions/install.bash
+++ b/lib/actions/install.bash
@@ -86,14 +86,21 @@ action() {
}
action_install_core() {
+ local args
+
+ args+=("--prefix=$RSTAR_PREFIX")
+
+ # Build relocatable components when not on OpenBSD.
+ if [[ ${RSTAR_PLATFORM[os]} != "openbsd" ]]
+ then
+ args+=("--relocatable")
+ fi
+
# Compile all core components
for component in moarvm nqp rakudo
do
VERSION="$(config_etc_kv "fetch_core.txt" "${component}_version")" \
- build_"$component" \
- --prefix="$RSTAR_PREFIX" \
- --relocatable \
- && continue
+ build_"$component" "${args[@]}" && continue
die "Build failed!"
done
--
cgit v1.1