]> git.notmuchmail.org Git - notmuch/commit
build: move LDFLAGS after notmuch libraries.
authorDavid Bremner <david@tethera.net>
Fri, 24 Dec 2021 18:29:03 +0000 (14:29 -0400)
committerDavid Bremner <david@tethera.net>
Fri, 31 Dec 2021 11:07:32 +0000 (07:07 -0400)
commit2494e61b9ee6bbab4ac017136d7c6ee0de19b26d
tree4115e79fe13a23cc84e5c3dff9fc3a1cee16bf92
parent6721e2eac5c8698cc7f364c58c646f6b44105b57
build: move LDFLAGS after notmuch libraries.

In [1] Ryan Schmidt reported a problem on macports [2] with notmuch
finding an existing installed version of libnotmuch during the build
when the user specified LDFLAGS including the libnotmuch install
directory.

This change should prevent that.

LDFLAGS also occurs in FINAL_LIBNOTMUCH_LDFLAGS. The only built
library linked to that is util/libtnotmuch_util.a, and that passed as
explicit (relative) path, and is thus not affected by -L.

[1]: id:7851CAB5-4556-4931-A0A2-37003E56C927@ryandesign.com

[2]: The problem does not arise when libnotmuch is installed into a
"system" library path that the compiler/linker searches by default.
Makefile.global