diff options
author | Chris Packham <judge.packham@gmail.com> | 2023-08-21 20:59:52 +1200 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2023-08-25 18:13:06 +1200 |
commit | 9473e7a481c2a1ca57ec8ddc6d7fe1ac1378347b (patch) | |
tree | 4f4c5814e10d9de0378e575c619a2476b058366e | |
parent | 981043dc883a944f4492df0b30c20e29b53a56e9 (diff) | |
download | crosstool-ng-9473e7a481c2a1ca57ec8ddc6d7fe1ac1378347b.tar.gz crosstool-ng-9473e7a481c2a1ca57ec8ddc6d7fe1ac1378347b.tar.bz2 crosstool-ng-9473e7a481c2a1ca57ec8ddc6d7fe1ac1378347b.zip |
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>
-rw-r--r-- | config/libc/glibc.in | 13 | ||||
-rw-r--r-- | scripts/build/libc/glibc.sh | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/config/libc/glibc.in b/config/libc/glibc.in index 81261cdc..fb72f67a 100644 --- a/config/libc/glibc.in +++ b/config/libc/glibc.in @@ -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)" diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index e400b219..280eb124 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -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 |