diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-04-01 11:37:26 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-04-01 11:37:26 +0200 |
commit | e8cff058daa713a886db0f9238e57038b9b92057 (patch) | |
tree | 07168b826ff97cce6b29447fdb61985af50caf99 /lib/actions | |
parent | ac777211fdd1a5556097a9856389dc34f5356706 (diff) |
Don't use relocatable builds on OpenBSD
Diffstat (limited to 'lib/actions')
-rw-r--r-- | lib/actions/install.bash | 15 |
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 |