diff options
author | Robin Jarry <robin@jarry.cc> | 2023-03-03 00:26:05 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-03-03 21:42:50 +0100 |
commit | d5e47e300a42ed64c17e4b391b77234e22c9f915 (patch) | |
tree | 2d54528dbceafbe404c2784ce2978165fb971d44 /README.md | |
parent | b63c93563c622e70cda7006c1816dc6b59e75844 (diff) | |
download | aerc-d5e47e300a42ed64c17e4b391b77234e22c9f915.tar.gz |
mk: detect if notmuch headers & libs are available
Detect if notmuch is available by trying to compile a minimal go program
that uses the notmuch.h header and links to libnotmuch.so.
If that succeeds, set the default GOFLAGS value to -tags=notmuch.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Inwit <inwit@sindominio.net>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -77,9 +77,24 @@ Then compile aerc: aerc optionally supports notmuch. To enable it, you need to have a recent version of [notmuch](https://notmuchmail.org/#index7h2), including the header -files (notmuch.h). Then compile aerc with the necessary build tags: +files (notmuch.h). The `notmuch` build tag should be automatically added. - $ GOFLAGS=-tags=notmuch make + $ make + GOFLAGS have changed, recompiling + go build -trimpath -tags=notmuch -ldflags "-X ... + ^^^^^^^^^^^^^ + ... + +If it is not, you can force it before building: + + $ export GOFLAGS=-tags=notmuch + $ make + +If you have notmuch headers available but do not want to build notmuch support +in aerc, force GOFLAGS to an empty value: + + $ export GOFLAGS= + $ make To install aerc locally: |