]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Apparently clang needs us to link to compiler-rt to get at the builtins...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 28 Oct 2021 16:57:50 +0000 (12:57 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 28 Oct 2021 16:57:50 +0000 (12:57 -0400)
configure
configure.ac

index f17604003844125202ca6b030d4fa41cd0c756c6..96ca0dd8b91fcf4a000a34c99c1c48fc0b4bb8d8 100755 (executable)
--- 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=""
 
index 3168cd47b915d1c32eb06fe4ba2efe0348ea4304..0a49fcaffae313ff66778b696c66105059e2b391 100644 (file)
@@ -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