[Freemint-list] m68k-atari-mint-gcc 7.1 status
Thorsten Otto
admin at tho-otto.de
Wed Oct 11 00:22:21 MSD 2017
Hi,
just in case someone makes experiments with -flto: i just stumbled upon a
pitfall when trying to compile packages using autoconf scripts. You have to
make sure that -flto is only added to CFLAGS/CXXFLAGS until after all checks
for library functions have done (or pass it somehow in the invocation of
make). Otherwise, in the test program that is compiled by autoconf, the
reference to the tested function is optimized away because it is not used
afterwards, and the test succeeds. That will make think autoconf the function
exists, define the HAVE_XXX macro, and the compilation will fail if the
function is missing.
More information about the Freemint-list
mailing list