]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix cross-compilation
authorMichał Kępień <michal@isc.org>
Mon, 2 Nov 2020 11:27:55 +0000 (12:27 +0100)
committerMichał Kępień <michal@isc.org>
Mon, 2 Nov 2020 11:27:55 +0000 (12:27 +0100)
commit35ca6df07277adff4df7472a0b01ea5438cdf1ff
tree338c5d0f842b94d8a8094e9fb9aa28aaee0ba445
parent9ba5a4f6f82042f89cff4e53ba0e1157b0c9e77e
Fix cross-compilation

Using AC_RUN_IFELSE() in configure.ac breaks cross-compilation:

    configure: error: cannot run test program while cross compiling

Commit 978c7b2e89aa37a7ddfe2f6b6ba12ce73dd04528 caused AC_RUN_IFELSE()
to be used instead of AC_LINK_IFELSE() because the latter had seemingly
been causing the check for --wrap support in the linker to not work as
expected.  However, it later turned out that the problem lied elsewhere:
a minus sign ('-') was missing from the LDFLAGS variable used in the
relevant check [1].

Revert to using AC_LINK_IFELSE() for checking whether the linker
supports the --wrap option in order to make cross-compilation possible
again.

[1] see commit cfa4ea64bc06685f210a4187dcc05cc0aac84851
configure
configure.ac