Add LD_FLAGS for stripping binaries
Resolves: RHEL-93238
This commit is contained in:
parent
c1af0913c7
commit
2dcff1324c
@ -102,7 +102,7 @@
|
||||
|
||||
Name: golang
|
||||
Version: %{version}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: The Go Programming Language
|
||||
# source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
|
||||
License: BSD and Public Domain
|
||||
@ -342,7 +342,7 @@ export CC_FOR_TARGET="gcc"
|
||||
export GOOS=linux
|
||||
export GOARCH=%{gohostarch}
|
||||
|
||||
DEFAULT_GO_LD_FLAGS=""
|
||||
DEFAULT_GO_LD_FLAGS="-s -w"
|
||||
%if !%{external_linker}
|
||||
export GO_LDFLAGS="-linkmode internal $DEFAULT_GO_LD_FLAGS"
|
||||
%else
|
||||
@ -585,6 +585,10 @@ cd ..
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Jun 26 2025 Alejandro Sáez <asm@redhat.com> - 1.24.4-2
|
||||
- Add LD_FLAGS for stripping binaries
|
||||
- Resolves: RHEL-93238
|
||||
|
||||
* Fri Jun 13 2025 David Benoit <dbenoit@redhat.com> - 1.24.4-1
|
||||
- Update to Go 1.24.4 (fips-1)
|
||||
- Resolves: RHEL-95998
|
||||
|
Loading…
Reference in New Issue
Block a user