diff --git a/recipes/libs/ncurses/recipe.toml b/recipes/libs/ncurses/recipe.toml index 0fa4f74d..87fc7479 100644 --- a/recipes/libs/ncurses/recipe.toml +++ b/recipes/libs/ncurses/recipe.toml @@ -15,9 +15,12 @@ COOKBOOK_CONFIGURE_FLAGS+=( --without-ada --without-manpages --without-tests - --with-shared cf_cv_func_mkstemp=yes ) +if [ "${COOKBOOK_DYNAMIC}" == "1" ] +then + COOKBOOK_CONFIGURE_FLAGS+=(--with-shared) +fi cookbook_configure """