From 9f72a8aa6b7e1402450d1d5e0745fa05ee3b4746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Tue, 31 Aug 2021 22:08:02 +0100 Subject: [PATCH] Fix for commit 3d7bf376 we need use += and a space CXXFLAGS+=" -O3 -ffast-math" , if not += you override all system settings for CXXFLAGS and none for LDFLAGS, which ends with "/usr/bin/ld: /tmp/ccARck2g.o: relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE`" https://stackoverflow.com/a/38579792/778517 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c15e348..364c1f8 100644 --- a/configure.ac +++ b/configure.ac @@ -33,7 +33,7 @@ AC_LANG(C++) # Compiler flags. Apply -ffast-math to allow gcc autovectorization # generate effective SIMD code. -CXXFLAGS="-O3 -ffast-math" +CXXFLAGS+=" -O3 -ffast-math" # Set AR_FLAGS to avoid build warning "ar: `u' modifier ignored since `D' is the default (see `U')" AR_FLAGS='cr'