aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-04-01 11:37:26 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-04-01 11:37:26 +0200
commite8cff058daa713a886db0f9238e57038b9b92057 (patch)
tree07168b826ff97cce6b29447fdb61985af50caf99
parentac777211fdd1a5556097a9856389dc34f5356706 (diff)
Don't use relocatable builds on OpenBSD
-rw-r--r--lib/actions/install.bash15
1 files 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