From: Alan T. DeKok Date: Fri, 12 Dec 2025 16:33:49 +0000 (-0500) Subject: only update LDFLAGS if the configure checks pass X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=0924cd2cd3bcfd140bfec8ff2669edae1cab1c2c;p=thirdparty%2Ffreeradius-server.git only update LDFLAGS if the configure checks pass --- diff --git a/configure b/configure index 501dde98a89..ca09916d042 100755 --- a/configure +++ b/configure @@ -4942,10 +4942,8 @@ printf "%s\n" "$ax_cv_cc_unwindlib_arg" >&6; } clang_path="$CC" - LDFLAGS="$LDFLAGS --rtlib=compiler-rt" - if test "x$ax_cv_cc_unwindlib_arg" = "xyes"; then - LDFLAGS="$LDFLAGS --unwindlib=libunwind" + LDFLAGS="$LDFLAGS --rtlib=compiler-rt --unwindlib=libunwind" fi else clang_path="" diff --git a/configure.ac b/configure.ac index 365459dfb93..a94d31b8246 100644 --- a/configure.ac +++ b/configure.ac @@ -331,11 +331,9 @@ if test "x$ax_cv_cc_clang" = "xyes"; then AX_CC_UNWINDLIB_ARG AC_SUBST(clang_path, "$CC") - dnl # Needed for builtins to function correctly (https://bugs.gentoo.org/702344) - LDFLAGS="$LDFLAGS --rtlib=compiler-rt" - if test "x$ax_cv_cc_unwindlib_arg" = "xyes"; then - LDFLAGS="$LDFLAGS --unwindlib=libunwind" + dnl # For GCC, use --rtlib=libgcc --unwindlib=libgcc + LDFLAGS="$LDFLAGS --rtlib=compiler-rt --unwindlib=libunwind" fi else AC_SUBST(clang_path, "")