]> git.cworth.org Git - notmuch/commit
configure: make _check_session_keys work with an as-needed linker
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 20 May 2019 20:52:01 +0000 (16:52 -0400)
committerDavid Bremner <david@tethera.net>
Mon, 20 May 2019 21:34:12 +0000 (18:34 -0300)
commit2669117ad75105c475f4c5850d9bf7a79dde9101
tree48787732fc7a03c945f15ffe836b621a0c0cac9f
parent0def7b6860decf7bd725a962c2dbc3ebc2ac418c
configure: make _check_session_keys work with an as-needed linker

When using a promiscuous linker, _check_session_keys was working fine.

But some OSes (including some versions of Ubuntu) have set their
linker to always link in "--as-needed" mode, which means that the
order of the objects linked is relevant.  If a library is loaded
before it is needed, that library will no longer be linked in the
final outcome.  _check_session_keys.c was failing on those systems.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
configure