mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 02:39:46 +00:00
glibc: Add option for building libcrypt
As of glibc-2.38 libcrypt is not built by default. Add an option to allow building libcrypt support into glibc. Signed-off-by: Chris Packham <judge.packham@gmail.com>
This commit is contained in:
parent
981043dc88
commit
9473e7a481
@ -155,6 +155,12 @@ config GLIBC_HAS_OBSOLETE_RPC
|
||||
def_bool y
|
||||
depends on GLIBC_2_14_or_later && !GLIBC_2_32_or_later
|
||||
|
||||
# As of 2.38 libcrypt is no longer built by default. It will likely be removed in a future
|
||||
# version.
|
||||
config GLIBC_HAS_OBSOLETE_LIBCRYPT
|
||||
def_bool y
|
||||
depends on GLIBC_2_38_or_later
|
||||
|
||||
config GLIBC_EXTRA_CONFIG_ARRAY
|
||||
string
|
||||
prompt "extra config"
|
||||
@ -203,6 +209,13 @@ config GLIBC_ENABLE_OBSOLETE_RPC
|
||||
help
|
||||
Allow building applications using obsolete (Sun) RPC.
|
||||
|
||||
config GLIBC_ENABLE_OBSOLETE_LIBCRYPT
|
||||
bool "Enable obsolete libcrypt"
|
||||
default n
|
||||
depends on GLIBC_HAS_OBSOLETE_LIBCRYPT
|
||||
help
|
||||
Allow building applications using obsolete libcrypt APIs.
|
||||
|
||||
config GLIBC_ENABLE_FORTIFIED_BUILD
|
||||
bool
|
||||
prompt "Enable fortified build (EXPERIMENTAL)"
|
||||
|
@ -66,6 +66,10 @@ glibc_backend_once()
|
||||
extra_config+=( --enable-obsolete-rpc )
|
||||
fi
|
||||
|
||||
if [ "${CT_GLIBC_ENABLE_OBSOLETE_LIBCRYPT}" = "y" ]; then
|
||||
extra_config+=( --enable-crypt )
|
||||
fi
|
||||
|
||||
# Add some default glibc config options if not given by user.
|
||||
# We don't need to be conditional on whether the user did set different
|
||||
# values, as they CT_GLIBC_EXTRA_CONFIG_ARRAY is passed after
|
||||
|
Loading…
Reference in New Issue
Block a user