From 9549caa12500b001f8b64bc4f89ac9d208c8df58 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 15 Nov 2024 01:23:39 +0100 Subject: [PATCH] _build.sh: disable --icf=all for AWS-LC to avoid linker fixup --- _build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_build.sh b/_build.sh index 4bbae46bb..b8ee32859 100755 --- a/_build.sh +++ b/_build.sh @@ -1049,8 +1049,8 @@ build_single_target() { _LDFLAGS_GLOBAL+=' -Wl,--gc-sections' fi - if [ "${_OPENSSL}" != 'awslc' ] && [ "${_OS}" = 'win' ]; then - if [ "${_CC}" = 'llvm' ] && [ "${_TOOLCHAIN}" != 'llvm-apple' ]; then + if [ "${_CC}" = 'llvm' ] && [ "${_TOOLCHAIN}" != 'llvm-apple' ]; then + if [ "${_OPENSSL}" != 'awslc' ] || [ "${_OS}" != 'win' ]; then _LDFLAGS_GLOBAL+=' -Wl,--icf=all' fi fi