From 55fe8a8ba7d8ff9822b7c1452a9af08df50a34c5 Mon Sep 17 00:00:00 2001 From: Dima Krasner Date: Sun, 24 Feb 2019 09:36:46 +0200 Subject: [PATCH] Fix musl build when CT_SHARED_LIBS=n Signed-off-by: Dima Krasner --- scripts/build/libc/musl.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/build/libc/musl.sh b/scripts/build/libc/musl.sh index b8ea9b14..63d68040 100644 --- a/scripts/build/libc/musl.sh +++ b/scripts/build/libc/musl.sh @@ -76,6 +76,11 @@ musl_backend_once() { extra_config+=("--enable-warnings") fi + case "${CT_SHARED_LIBS}" in + y) extra_config+=("--enable-shared");; + *) extra_config+=("--disable-shared");; + esac + extra_config+=( "--enable-optimize=${CT_LIBC_MUSL_OPTIMIZE}" ) # Same problem as with uClibc: different variants sometimes have