fix Werror

This commit is contained in:
Alexander Stefanov 2019-04-16 11:29:20 +00:00
parent 5bdc9c52d7
commit 88ca7d0a15

View file

@ -164,6 +164,7 @@ Patch1034: glibc-2.27-clang-_Float.patch
Patch1035: glibc-2.29-aarch64-buildfix.patch Patch1035: glibc-2.29-aarch64-buildfix.patch
Patch1036: glibc-2.29-strict-aliasing.patch Patch1036: glibc-2.29-strict-aliasing.patch
Patch1037: glibc-2.29-SIG_BLOCK.patch Patch1037: glibc-2.29-SIG_BLOCK.patch
Patch1039: unsigned-magic.patch
# yes need python3 # yes need python3
BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(python3)
@ -877,7 +878,6 @@ function BuildGlibc() {
[[ "$BuildAltArch" = "yes" ]] && touch ".alt" || touch ".main" [[ "$BuildAltArch" = "yes" ]] && touch ".alt" || touch ".main"
CC="$BuildCC" CXX="$BuildCXX" CFLAGS="$BuildFlags -Wno-error -fno-strict-aliasing" LDFLAGS="%{ldflags} -fuse-ld=bfd" ../configure \ CC="$BuildCC" CXX="$BuildCXX" CFLAGS="$BuildFlags -Wno-error -fno-strict-aliasing" LDFLAGS="%{ldflags} -fuse-ld=bfd" ../configure \
$arch-%{_target_vendor}-%{_target_os}%{?_gnu} \ $arch-%{_target_vendor}-%{_target_os}%{?_gnu} \
--disable-werror \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--libexecdir=%{_prefix}/libexec \ --libexecdir=%{_prefix}/libexec \
--infodir=%{_infodir} \ --infodir=%{_infodir} \