!407 delete the BuildRequires:gcc_secure

From: @yang_yanchao 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
This commit is contained in:
openeuler-ci-bot 2022-04-01 06:09:23 +00:00 committed by Gitee
commit 6b68fd5bf5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -65,7 +65,7 @@
############################################################################## ##############################################################################
Name: glibc Name: glibc
Version: 2.35 Version: 2.35
Release: 7 Release: 8
Summary: The GNU libc libraries Summary: The GNU libc libraries
License: %{all_license} License: %{all_license}
URL: http://www.gnu.org/software/glibc/ URL: http://www.gnu.org/software/glibc/
@ -102,7 +102,7 @@ Provides: ldconfig rtld(GNU_HASH) bundled(gnulib)
BuildRequires: audit-libs-devel >= 1.1.3, sed >= 3.95, libcap-devel, gettext BuildRequires: audit-libs-devel >= 1.1.3, sed >= 3.95, libcap-devel, gettext
BuildRequires: procps-ng, util-linux, gawk, systemtap-sdt-devel, systemd, python3 BuildRequires: procps-ng, util-linux, gawk, systemtap-sdt-devel, systemd, python3
BuildRequires: make >= 4.0, bison >= 2.7, binutils >= 2.30-17, gcc >= 7.2.1-6 BuildRequires: make >= 4.0, bison >= 2.7, binutils >= 2.30-17, gcc >= 7.2.1-6
BuildRequires: m4, gcc_secure, chrpath BuildRequires: m4, chrpath
%if %{without bootstrap} %if %{without bootstrap}
BuildRequires: gd-devel libpng-devel zlib-devel BuildRequires: gd-devel libpng-devel zlib-devel
@ -366,8 +366,9 @@ touch locale/programs/*-kw.h
############################################################################## ##############################################################################
%build %build
BuildFlags="-O2 -g" BuildFlags="-O2 -g -DNDEBUG -fPIC -fPIE -fstack-protector-strong"
BuildFlags="$BuildFlags -DNDEBUG" LinkFlags="-pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack"
reference=" \ reference=" \
"-Wp,-D_GLIBCXX_ASSERTIONS" \ "-Wp,-D_GLIBCXX_ASSERTIONS" \
"-fasynchronous-unwind-tables" \ "-fasynchronous-unwind-tables" \
@ -406,11 +407,12 @@ builddir=build-%{target}
rm -rf $builddir rm -rf $builddir
mkdir $builddir mkdir $builddir
pushd $builddir pushd $builddir
../configure CC="%GCC" CXX="%GXX" CFLAGS="$BuildFlags" \ ../configure CC="%GCC" CXX="%GXX" CFLAGS="$BuildFlags" LDFLAGS="$LinkFlags" \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--with-headers=%{_prefix}/include $EnableKernel \ --with-headers=%{_prefix}/include $EnableKernel \
--with-nonshared-cflags=-Wp,-D_FORTIFY_SOURCE=2 \ --with-nonshared-cflags=-Wp,-D_FORTIFY_SOURCE=2 \
--enable-bind-now \ --enable-bind-now \
--enable-shared \
--build=%{target} \ --build=%{target} \
--enable-stack-protector=strong \ --enable-stack-protector=strong \
%ifarch %{pie_arches} %ifarch %{pie_arches}
@ -1166,6 +1168,9 @@ fi
%endif %endif
%changelog %changelog
* Wed Mar 30 2022 Yang Yanchao <yangyanchao@huawei.com> - 2.35-8
- delete the BuildRequires:gcc_secure.
* Tue Mar 29 2022 Yang Yanchao <yangyanchao@huawei.com> - 2.35-7 * Tue Mar 29 2022 Yang Yanchao <yangyanchao@huawei.com> - 2.35-7
- mv libc.info.gz* to the package glibc-help - mv libc.info.gz* to the package glibc-help