Commit 7ac7a369 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Tweak IPO builds using clang

parent 8e70ca0d
......@@ -111,9 +111,10 @@ if test "$enable_ipo" = "yes"; then
], [:] )
AC_MSG_RESULT([added GCC interprocedural optimization support])
elif test "$ax_cv_c_compiler_vendor" = "clang"; then
CFLAGS="$CFLAGS -flto"
CFLAGS="$CFLAGS -flto -fuse-ld=gold"
LDFLAGS="$LDFLAGS -XCClinker -fuse-ld=gold"
: ${AR="llvm-ar"}
: ${LD="llvm-ld"}
: ${LD="ld.gold"}
: ${RANLIB="llvm-ranlib"}
AC_MSG_RESULT([added LLVM interprocedural optimization support])
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment