]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
Avoid configure checks being optimized away with LTO
authorStefanBruens <stefan.bruens@rwth-aachen.de>
Tue, 8 Oct 2019 23:52:50 +0000 (01:52 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 15 Oct 2019 12:05:11 +0000 (14:05 +0200)
commitcde6e98aabf30741069321f01dbb044f32b97552
tree95ab4e4411e343d0a604dd63aafbb166d31716d3
parent7767ab4272906b253daa6a1cd61703e1073a2404
Avoid configure checks being optimized away with LTO

In case the checks are compiled with CFLAGS including "-O1 -flto" (or any
other optimization level), a "test()" function not referenced by by main
will be optimized away and discarded prior to the final linking step, and
there will be no undefined symbols, thus the checks always succeeds.

This at least affects the "strlcpy"/"strlcat" checks, but may affects other
checks as well.
configure