Add BUILDTAGS back again
Resolves: RHEL-7437
This commit is contained in:
parent
059580c964
commit
ff734f1c6f
@ -25,7 +25,7 @@ index a46f81f..05cd6c9 100644
|
|||||||
+# Define commands for building
|
+# Define commands for building
|
||||||
+# BUILD_ID can be generated for golang build no matter of debuginfo
|
+# BUILD_ID can be generated for golang build no matter of debuginfo
|
||||||
+%gobuild(o:) \
|
+%gobuild(o:) \
|
||||||
+GOPPC64=power9 GOAMD64=v2 CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" go build -compiler gc -buildmode pie '-tags=rpm_crashtraceback libtrust_openssl ' -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\
|
+GOPPC64=power9 GOAMD64=v2 CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" go build -compiler gc -buildmode pie '-tags=rpm_crashtraceback libtrust_openssl {GO_BUILDTAGS-${BUILDTAGS-}}' -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\
|
||||||
+
|
+
|
||||||
+# Define commands for testing
|
+# Define commands for testing
|
||||||
+%gotest() go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**};
|
+%gotest() go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**};
|
||||||
|
Loading…
Reference in New Issue
Block a user