(aarch64/s390) remove -Wall and -Werror=format-security separately

This commit is contained in:
Jens Petersen 2018-07-24 19:13:19 +09:00
parent ccd70e89cb
commit c07f27990b
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ autoconf
%else
# -Wunused-label is extremely noisy
%ifarch aarch64 s390x
CFLAGS="${CFLAGS:-$(echo %optflags | sed -e 's/-Wall -Werror=format-security //')}"
CFLAGS="${CFLAGS:-$(echo %optflags | sed -e 's/-Wall //' -e 's/-Werror=format-security //')}"
%else
CFLAGS="${CFLAGS:-%optflags}"
%endif