From f8944f12868545167b617ba1e85d394352737000 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Mon, 10 May 2021 23:27:54 +0200 Subject: [PATCH] Another bash fix --- script/compile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/script/compile b/script/compile index 3da7bc24..29dda6f3 100755 --- a/script/compile +++ b/script/compile @@ -76,10 +76,13 @@ args=( "-jar" "$BABASHKA_JAR" BABASHKA_STATIC=${BABASHKA_STATIC:-} BABASHKA_ARCH=${BABASHKA_ARCH:-} -if [ "$BABASHKA_STATIC" = "true" ] && [ "$BABASHKA_ARCH" != "aarch64" ]; then - args+=("--static" "--libc=musl" - # see https://github.com/oracle/graal/issues/3398 - "-H:CCompilerOption=-Wl,-z,stack-size=2097152") +if [ "$BABASHKA_STATIC" = "true" ]; then + args+=("--static") + if [ "$BABASHKA_ARCH" != "aarch64" ]; then + args+=("--libc=musl" + # see https://github.com/oracle/graal/issues/3398 + "-H:CCompilerOption=-Wl,-z,stack-size=2097152") + fi fi BABASHKA_FEATURE_HSQLDB=${BABASHKA_FEATURE_HSQLDB:-}