diff options
Diffstat (limited to 'sys-libs/zlib/files/zlib-1.2.12-fix-CC-logic-in-configure.patch')
-rw-r--r-- | sys-libs/zlib/files/zlib-1.2.12-fix-CC-logic-in-configure.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-libs/zlib/files/zlib-1.2.12-fix-CC-logic-in-configure.patch b/sys-libs/zlib/files/zlib-1.2.12-fix-CC-logic-in-configure.patch new file mode 100644 index 000000000000..da9455519b6f --- /dev/null +++ b/sys-libs/zlib/files/zlib-1.2.12-fix-CC-logic-in-configure.patch @@ -0,0 +1,27 @@ +From 95b9053f10710f9f881f4daec2f2e78da87560cf Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Mon, 28 Mar 2022 08:21:18 +0100 +Subject: [PATCH] Fix CC logic in configure + +In https://github.com/madler/zlib/commit/e9a52aa129efe3834383e415580716a7c4027f8d, +the logic was changed to try check harder for GCC, but it dropped +the default setting of cc=${CC}. + +This led to e.g. misdetection of inability to build shared libs +for say, multilib cases (w/ CC being one thing (e.g. x86_64-unknown-linux-gnu-gcc -m32 +and then 'cc' used for shared libs being w/o -m32). + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/configure ++++ b/configure +@@ -180,7 +180,10 @@ if test -z "$CC"; then + else + cc=${CROSS_PREFIX}cc + fi ++else ++ cc=${CC} + fi ++ + cflags=${CFLAGS-"-O3"} + # to force the asm version use: CFLAGS="-O3 -DASMV" ./configure + case "$cc" in |