rearrange BUILDTAGS specification line
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
3f0cea4fe1
commit
b6bb0bb353
@ -114,7 +114,6 @@ popd
|
||||
mv vendor src
|
||||
|
||||
export GOPATH=$(pwd)/_build:$(pwd)
|
||||
export BUILDTAGS='seccomp selinux'
|
||||
export CGO_CFLAGS="-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -ffat-lto-objects -fexceptions -fasynchronous-unwind-tables -fstack-protector-strong -fstack-clash-protection -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
%ifarch x86_64
|
||||
export CGO_CFLAGS="$CGO_CFLAGS -m64 -mtune=generic"
|
||||
@ -125,6 +124,7 @@ export CGO_CFLAGS="$CGO_CFLAGS -fcf-protection"
|
||||
# These extra flags present in %%{optflags} have been skipped for now as they break the build
|
||||
#export CGO_CFLAGS="$CGO_CFLAGS -flto=auto -Wp,D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1"
|
||||
|
||||
export BUILDTAGS='seccomp selinux'
|
||||
%if 0%{?centos} >= 8
|
||||
export BUILDTAGS+=' exclude_graphdriver_btrfs'
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user