Remove the -g option and the debug package

This commit is contained in:
Liquor 2021-03-22 16:10:59 +08:00
parent 6d26a5997b
commit a824eea6d6

View File

@ -1,3 +1,4 @@
%define debug_package %{nil}
%bcond_with bootstrap
%bcond_without ncurses
%bcond_without sphinx
@ -10,7 +11,7 @@
Name: cmake
Version: 3.19.2
Release: 1
Release: 2
Summary: Cross-platform make system
License: BSD and MIT and zlib
URL: http://www.cmake.org
@ -103,8 +104,8 @@ sed '1c #!%{__python3}' %{SOURCE4} > cmake.prov
sed '1c #!%{__python3}' %{SOURCE5} > cmake.req
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
export CFLAGS=`echo %{optflags} | sed 's/-g\b/-s/g'`
export CXXFLAGS=`echo %{optflags} | sed 's/-g\b/-s/g'`
export LDFLAGS="%{?__global_ldflags}"
mkdir build
pushd build
@ -233,6 +234,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%exclude %{_pkgdocdir}/Copyright.txt
%changelog
* Mon Mar 22 2021 lirui <lirui130@huawei.com> - 3.19.2-2
- Remove the -g option and the debug package
- add the -s option
* Mon Jan 25 2021 wangchen <wangchen137@huawei.com> - 3.19.2-1
- Update to 3.19.2