Temporary pass -Wno-deprecated-declarations to gcc to ignore deprecated warnings to be able to build against OpenSSL-3.0

Resolves: rhbz#1962603
This commit is contained in:
Artem Egorenkov 2021-10-13 14:25:25 +02:00
parent 1fd680f423
commit ebaec57452

View File

@ -109,10 +109,13 @@ scratch.
cp %{SOURCE1} . cp %{SOURCE1} .
%build %build
# temporary ignore deprecated warnings to be able to build against OpenSSL 3.0
%define ignore_deprecated -Wno-deprecated-declarations
%ifarch s390x sparcv9 sparc64 %ifarch s390x sparcv9 sparc64
%make_build CFLAGS="$RPM_OPT_FLAGS -fPIE -pipe -Wextra -Werror" \ %make_build CFLAGS="$RPM_OPT_FLAGS -fPIE -pipe -Wextra -Werror %ignore_deprecated" \
%else %else
%make_build CFLAGS="$RPM_OPT_FLAGS -fpie -pipe -Wextra -Werror" \ %make_build CFLAGS="$RPM_OPT_FLAGS -fpie -pipe -Wextra -Werror %ignore_deprecated" \
%endif %endif
LINK="-pie -lssl $RPM_LD_FLAGS" %{?_smp_mflags} LINK="-pie -lssl $RPM_LD_FLAGS" %{?_smp_mflags}