Build contrib filters after the main application

This build flow is more logical and makes sure all the build flags are
set in the right order.

[skip changelog]
This commit is contained in:
Maxwell G 2023-12-23 22:17:12 +00:00
commit 89992b35ca
No known key found for this signature in database
GPG key ID: F79E4E25E8C661F8

View file

@ -58,8 +58,6 @@ sed -i "s|github.com/zenhack/go.notmuch|github.com/brunnre8/go.notmuch|" $(find
echo 'golang(github.com/brunnre8/go.notmuch)'
%build
%set_build_flags
make wrap colorize
export BUILDTAGS=notmuch
export LDFLAGS="-X main.Version=%{version} \
-X main.Prefix=%{_prefix} \
@ -68,6 +66,12 @@ export LDFLAGS="-X main.Version=%{version} \
-X git.sr.ht/~rjarry/aerc/config.libexecDir=%{_libexecdir}"
%gobuild -o aerc %{goipath}
# The go macros interfere with C build flags.
# Reset LDFLAGS and set other missing build flags.
unset LDFLAGS
%set_build_flags
%make_build wrap colorize doc
%install
export PREFIX=%{_prefix}
%make_install