Discussion:
ncurses fails to build when using 'flto' flag in CFLAGS, CXXFLAGS, LDFLAGS
Denis Pronin
2018-10-03 20:37:15 UTC
Permalink
I am so sorry, I forgot to complete the subject
Hi,
My name is Denis, I work on gentoo linux
There is an issue waiting to be resolved
We have failed with configuring ncurses because of flto flag set in CFLAGS, CXXFLAGS, LDFLAGS since some conftests cheking linking with dl*() functions work unexpectedly for the configure script when 'flto' is on. The gist is that 'flto' makes a compiler and a linker displace some symbols like 'dlsym' because they are not used actually; without 'flto' everything works because no optimization is taken and every symbol used appears when linking, no one is optimized out
This is the gentoo issue https://bugs.gentoo.org/606142, take a look please
Thank you
Loading...