From 1c33ff5bbbbe01373fae440e92a6d7b456a1b25e Mon Sep 17 00:00:00 2001 From: Kostadin Shishmanov Date: Tue, 5 Nov 2024 08:42:13 +0200 Subject: [PATCH] Fix building with LTO on Linux This fixes the following build failure when building with CFLAGS="-flto" on Linux /usr/bin/ld: /tmp/cc9dX2xq.ltrans2.ltrans.o: undefined reference to symbol 'ceil@@GLIBC_2.2.5' /usr/bin/ld: /usr/lib/libm.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Signed-off-by: Kostadin Shishmanov --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9d71e956..935706f5 100644 --- a/configure.ac +++ b/configure.ac @@ -69,7 +69,7 @@ if test "x$ac_cv_have_endian_h" = "xno"; then fi fi -GLOBAL_CFLAGS="-Wno-multichar -O2" +GLOBAL_CFLAGS="-Wno-multichar -O2 -lm" AC_LDADD="" AC_LDFLAGS=""