temporarilly skip %{?__global_ldflags} to avoid gcc errors on armv7

related to link lto-type-mismatch errors.
This commit is contained in:
Paul Wouters 2020-09-28 01:25:53 -04:00
parent 9aec852f63
commit c233ff19f3

View File

@ -111,6 +111,7 @@ sed -i "s:#[ ]*include \(.*\)\(/crypto-policies/back-ends/libreswan.config\)$:in
%build %build
# link flags disable hardening because it fails on arm with what looks like gcc bugs in -Werror=lto-type-mismatch
make %{?_smp_mflags} \ make %{?_smp_mflags} \
%if 0%{with_development} %if 0%{with_development}
OPTIMIZE_CFLAGS="%{?_hardened_cflags}" \ OPTIMIZE_CFLAGS="%{?_hardened_cflags}" \
@ -120,8 +121,8 @@ make %{?_smp_mflags} \
%if 0%{with_efence} %if 0%{with_efence}
USE_EFENCE=true \ USE_EFENCE=true \
%endif %endif
WERROR_CFLAGS="-Werror -Wno-missing-field-initializers -Wno-lto-type-mismatch" \ WERROR_CFLAGS="-Werror -Wno-missing-field-initializers -Wno-lto-type-mismatch -Wno-maybe-uninitialized" \
USERLINK="%{?__global_ldflags}" \ USERLINK="-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -flto --no-lto" \
%{libreswan_config} \ %{libreswan_config} \
programs programs
FS=$(pwd) FS=$(pwd)