Index: build/make-kit-linux-amd64-static ================================================================== --- build/make-kit-linux-amd64-static +++ build/make-kit-linux-amd64-static @@ -1,7 +1,10 @@ #! /bin/sh CROSS="x86_64-unknown-linux-musl" CC_ADD="-m64" -export CROSS CC_ADD +if ! echo " ${KITCREATOR_PKGS} " | grep ' kitdll ' >/dev/null; then + KC_KITSH_LDFLAGS="${KC_KITSH_FLAGS} -static" +fi +export CROSS CC_ADD KC_KITSH_LDFLAGS ./build/make-kit-crosscompile "$@" --enable-64bit Index: build/make-kit-linux-i386-static ================================================================== --- build/make-kit-linux-i386-static +++ build/make-kit-linux-i386-static @@ -1,7 +1,10 @@ #! /bin/sh CROSS="x86_64-unknown-linux-musl" CC_ADD='-m32' -export CROSS CC_ADD +if ! echo " ${KITCREATOR_PKGS} " | grep ' kitdll ' >/dev/null; then + KC_KITSH_LDFLAGS="${KC_KITSH_FLAGS} -static" +fi +export CROSS CC_ADD KC_KITSH_LDFLAGS ./build/make-kit-crosscompile "$@"