Skip to content

Commit

Permalink
MT#55283 Workaround for RPM packaging EL8/GCC 8.5
Browse files Browse the repository at this point in the history
- LTS mr11.5.1 doesn't build with system GCC 8.5 on EL8
- add a workaround for using GCC 13

Closes #1887
Closes #1886

Change-Id: Ib93942fae8f754c7673509ccb45e0d08569f23f0
Addresses: #1886
(cherry picked from commit 0e2033b)
(cherry picked from commit c7b559f)
  • Loading branch information
space88man authored and rfuchs committed Dec 17, 2024
1 parent e753bb2 commit e03b507
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions el/rtpengine.spec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ BuildRequires: perl-podlators
BuildRequires: pkgconfig(libwebsockets)
BuildRequires: pkgconfig(spandsp)
BuildRequires: pkgconfig(opus)
%if 0%{?rhel} == 8
# LTS mr11.5.1 cannot build with gcc 8.5
BuildRequires: gcc-toolset-13
%endif
Requires(pre): shadow-utils

%if 0%{?with_transcoding} > 0
Expand Down Expand Up @@ -96,6 +100,10 @@ and decodes them into an audio format that can be listened to.


%build
%if 0%{?rhel} == 8
# LTS mr11.5.1 cannot build with gcc 8.5
. /opt/rh/gcc-toolset-13/enable
%endif
%if 0%{?with_transcoding} > 0
cd daemon
RTPENGINE_VERSION="\"%{version}-%{release}\"" make
Expand Down

0 comments on commit e03b507

Please sign in to comment.