From: Arran Cudbard-Bell Date: Thu, 28 Oct 2021 16:57:50 +0000 (-0400) Subject: Apparently clang needs us to link to compiler-rt to get at the builtins... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76fe2908e2c8a05c9987f04386f1e67aab1f438d;p=thirdparty%2Ffreeradius-server.git Apparently clang needs us to link to compiler-rt to get at the builtins... --- diff --git a/configure b/configure index f1760400384..96ca0dd8b91 100755 --- a/configure +++ b/configure @@ -5841,6 +5841,7 @@ printf "%s\n" "$ax_cv_cc_clang" >&6; } if test "x$ax_cv_cc_clang" = "xyes"; then clang_path="$CC" + LDFLAGS="$LDFLAGS --rtlib=compiler-rt" # Needed for builtins to function correctly else clang_path="" diff --git a/configure.ac b/configure.ac index 3168cd47b91..0a49fcaffae 100644 --- a/configure.ac +++ b/configure.ac @@ -249,6 +249,7 @@ dnl # AX_CC_IS_CLANG if test "x$ax_cv_cc_clang" = "xyes"; then AC_SUBST(clang_path, "$CC") + LDFLAGS="$LDFLAGS --rtlib=compiler-rt" # Needed for builtins to function correctly else AC_SUBST(clang_path, "") fi