Add LD_FLAGS for stripping binaries

Resolves: RHEL-93238
This commit is contained in:
Alejandro Sáez 2025-06-25 14:40:36 +02:00
parent c1af0913c7
commit 2dcff1324c

View File

@ -102,7 +102,7 @@
Name: golang Name: golang
Version: %{version} Version: %{version}
Release: 1%{?dist} Release: 2%{?dist}
Summary: The Go Programming Language Summary: The Go Programming Language
# source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain # source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
License: BSD and Public Domain License: BSD and Public Domain
@ -342,7 +342,7 @@ export CC_FOR_TARGET="gcc"
export GOOS=linux export GOOS=linux
export GOARCH=%{gohostarch} export GOARCH=%{gohostarch}
DEFAULT_GO_LD_FLAGS="" DEFAULT_GO_LD_FLAGS="-s -w"
%if !%{external_linker} %if !%{external_linker}
export GO_LDFLAGS="-linkmode internal $DEFAULT_GO_LD_FLAGS" export GO_LDFLAGS="-linkmode internal $DEFAULT_GO_LD_FLAGS"
%else %else
@ -585,6 +585,10 @@ cd ..
%endif %endif
%changelog %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 * Fri Jun 13 2025 David Benoit <dbenoit@redhat.com> - 1.24.4-1
- Update to Go 1.24.4 (fips-1) - Update to Go 1.24.4 (fips-1)
- Resolves: RHEL-95998 - Resolves: RHEL-95998