Skip to content

Commit a629ef1

Browse files
authored
Merge pull request #10356 from space88man/fix-rhel10-lto
rpm packaging: RHEL10 + LTO needs gcc-toolset-15
2 parents f7d3a48 + 8ecaf8a commit a629ef1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

rpm/spec.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ BuildRequires: make
1313
BuildRequires: pkgconfig
1414
BuildRequires: sed
1515
BuildRequires: tar
16+
%if 0%{?rhel} == 10
17+
BuildRequires: gcc-toolset-15 gcc-toolset-15-gcc-plugin-annobin
18+
%endif
1619
URL: http://www.wolfssl.com/
1720

1821
Packager: wolfSSL <support@wolfssl.com>
@@ -37,6 +40,9 @@ you will need to install %{name}-devel.
3740
%setup -q
3841

3942
%build
43+
%if 0%{?rhel} == 10
44+
source /usr/lib/gcc-toolset/15-env.source
45+
%endif
4046
%configure @WOLFSSL_CONFIG_ARGS@
4147
%{__make} %{?_smp_mflags}
4248
if [ "@ENABLED_FIPS@" = "yes" ]

0 commit comments

Comments
 (0)