- Add -buildmode pie to composer-cli-tests LDFLAGS

Related: rhbz#2010519
This commit is contained in:
Brian C. Lane 2021-10-05 15:34:53 -07:00
parent 9085112b22
commit d11385cd07

View File

@ -7,7 +7,7 @@
Name: weldr-client
Version: 35.3
Release: 1%{?dist}
Release: 2%{?dist}
# Upstream license specification: Apache-2.0
License: ASL 2.0
Summary: Command line utility to control osbuild-composer
@ -83,7 +83,7 @@ export BUILDTAGS="integration"
# On Fedora, also turn off go modules and set the path to the one into which
# the golang-* packages install source code.
%if 0%{?rhel}
export LDFLAGS="${LDFLAGS:-} -B 0x$(od -N 20 -An -tx1 -w100 /dev/urandom | tr -d ' ')"
export LDFLAGS="${LDFLAGS:-} -buildmode pie -B 0x$(od -N 20 -An -tx1 -w100 /dev/urandom | tr -d ' ')"
go test -c -tags=integration -ldflags="${LDFLAGS}" -o composer-cli-tests %{goipath}/weldr
%else
make GOBUILDFLAGS="%{gobuildflags}" integration
@ -131,6 +131,10 @@ composer-cli package.
%changelog
* Tue Oct 05 2021 Brian C. Lane <bcl@redhat.com> - 35.3-2
- Add -buildmode pie to composer-cli-tests LDFLAGS
Related: rhbz#2010519
* Mon Oct 04 2021 Brian C. Lane <bcl@redhat.com> - 35.3-1
- New release: 35.3 (bcl)
Resolves: rhbz#2010519