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:
parent
d32072edba
commit
89992b35ca
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue