]> git.ipfire.org Git - thirdparty/xz.git/commit
Build: Change --enable-ifunc handling.
authorJia Tan <jiat0218@gmail.com>
Tue, 21 Nov 2023 12:56:55 +0000 (20:56 +0800)
committerJia Tan <jiat0218@gmail.com>
Thu, 30 Nov 2023 12:04:42 +0000 (20:04 +0800)
commitffb456593d695d70052a2f71c7a2e6269217d194
treea00443d5cc4f60e32adc601e13095afcde45c50a
parent12b89bcc9915090eb42ae638e565af44b6832a23
Build: Change --enable-ifunc handling.

Some compilers support __attribute__((__ifunc__())) even though the
dynamic linker does not. The compiler is able to create the binary
but it will fail on startup. So it is not enough to just test if
the attribute is supported.

The default value for enable_ifunc is now auto, which will attempt
to compile a program using __attribute__((__ifunc__())). There are
additional checks in this program if glibc is being used or if it
is running on FreeBSD.

Setting --enable-ifunc will skip this test and always enable
__attribute__((__ifunc__())), even if is not supported.
configure.ac