From 5ee2b6fe57857ca479f86a778811ecb3230e3e83 Mon Sep 17 00:00:00 2001 From: Kazuki H Date: Fri, 22 Dec 2023 23:58:16 +0900 Subject: toolchain: glibc: update to glibc 2.38 This updates glibc to version 2.38. Add --enable-crypt since the crypt function got disabled in 2.38, but we still need it. Also add the newly introduced --enable-fortify-source flag and hook it up to the build system. Switch to .zst archive while at it. Signed-off-by: Kazuki H Link: https://github.com/openwrt/openwrt/pull/14259 [ switch to .zst and fix mirror HASH ] Signed-off-by: Christian Marangi --- .../050-Revert-Disallow-use-of-DES-encryption-functions-in-n.patch | 6 +++--- toolchain/glibc/patches/200-add-dl-search-paths.patch | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'toolchain/glibc/patches') diff --git a/toolchain/glibc/patches/050-Revert-Disallow-use-of-DES-encryption-functions-in-n.patch b/toolchain/glibc/patches/050-Revert-Disallow-use-of-DES-encryption-functions-in-n.patch index c9db703938..771cb4c374 100644 --- a/toolchain/glibc/patches/050-Revert-Disallow-use-of-DES-encryption-functions-in-n.patch +++ b/toolchain/glibc/patches/050-Revert-Disallow-use-of-DES-encryption-functions-in-n.patch @@ -82,7 +82,7 @@ provides them. int totfails = 0; int main (int argc, char *argv[]); -@@ -119,13 +103,3 @@ put8 (char *cp) +@@ -123,13 +107,3 @@ put8 (char *cp) printf("%02x", t); } } @@ -469,7 +469,7 @@ provides them. * Encode Binary Data:: Encoding and Decoding of Binary Data. * Argz and Envz Vectors:: Null-separated string vectors. @end menu -@@ -2423,73 +2423,73 @@ functionality under a different name, su +@@ -2512,73 +2512,73 @@ functionality under a different name, su systems it may be in @file{strings.h} instead. @end deftypefun @@ -627,7 +627,7 @@ provides them. range [FROM - N + 1, FROM - 1]. If N is odd the first byte in FROM --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h -@@ -984,6 +984,12 @@ extern int getsubopt (char **__restrict +@@ -1103,6 +1103,12 @@ extern int getsubopt (char **__restrict #endif diff --git a/toolchain/glibc/patches/200-add-dl-search-paths.patch b/toolchain/glibc/patches/200-add-dl-search-paths.patch index e927d86f23..15106541ca 100644 --- a/toolchain/glibc/patches/200-add-dl-search-paths.patch +++ b/toolchain/glibc/patches/200-add-dl-search-paths.patch @@ -2,7 +2,7 @@ add /usr/lib to default search path for the dynamic linker --- a/Makeconfig +++ b/Makeconfig -@@ -631,6 +631,9 @@ else +@@ -632,6 +632,9 @@ else default-rpath = $(libdir) endif -- cgit v1.2.3