[PATCH 2/3] build: move CPPFLAGS after source directory includes.

Subject: [PATCH 2/3] build: move CPPFLAGS after source directory includes.

Date: Fri, 24 Dec 2021 14:29:04 -0400

To: Tomi Ollila, David Bremner, Ryan Schmidt, notmuch@notmuchmail.org


From: David Bremner

In [1] Ryan Schmidt reported a problem on macports [2] with notmuch
finding an existing installed version of notmuch.h during the build.

This is a partial fix; the user might also specify -I in CFLAGS.

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

[2]: The problem does not arise when notmuch.h is installed into a
"system" include path that the compiler searches by default.
 Makefile.global | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.global b/Makefile.global
index e6b00815..b712dd7b 100644
--- a/Makefile.global
+++ b/Makefile.global
@@ -50,8 +50,8 @@ DETACHED_SIG_FILE=$(TAR_FILE).asc
 # Smash together user's values with our extra values
 FINAL_NOTMUCH_LDFLAGS = -Lutil -lnotmuch_util -Llib -lnotmuch $(LDFLAGS)

notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org