Sync LDFLAGS definition with upstream Makefile
[skip changelog]
This commit is contained in:
parent
834efbb3a7
commit
4b22604ae8
1 changed files with 5 additions and 6 deletions
11
aerc.spec
11
aerc.spec
|
|
@ -61,12 +61,11 @@ sed -i "s|golang.org/x/crypto|github.com/ProtonMail/go-crypto|" $(find . -name "
|
|||
%build
|
||||
export BUILDTAGS=notmuch
|
||||
export LDFLAGS="\
|
||||
-X main.Version=%{version} \
|
||||
-X main.Prefix=%{_prefix} \
|
||||
-X main.ShareDir=%{_datadir}/aerc \
|
||||
-X git.sr.ht/~rjarry/aerc/config.shareDir=%{_datadir} \
|
||||
-X git.sr.ht/~rjarry/aerc/config.libexecDir=%{_libexecdir} \
|
||||
"
|
||||
-X main.Version=%{version} \
|
||||
-X main.Date="$(date -d "@${SOURCE_DATE_EPOCH}" +%Y-%m-%d)" \
|
||||
-X git.sr.ht/~rjarry/aerc/config.shareDir=%{_datadir} \
|
||||
-X git.sr.ht/~rjarry/aerc/config.libexecDir=%{_libexecdir} \
|
||||
"
|
||||
%gobuild -o aerc %{goipath}
|
||||
|
||||
# The go macros interfere with C build flags.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue