removed the enforced -std=c++11 from CXXFLAGS in the rpm spec file

This commit is contained in:
hyung-hwan 2020-04-16 06:17:12 +00:00
parent 0c6b7a6ac8
commit 756a8454b2

View File

@ -31,7 +31,7 @@ The header files and libraries for developing applications with HAWK.
%build %build
RPM_OPT_FLAGS="$(echo $RPM_OPT_FLAGS | %{__sed} 's/-O2/-O3/')" RPM_OPT_FLAGS="$(echo $RPM_OPT_FLAGS | %{__sed} 's/-O2/-O3/')"
CFLAGS="${RPM_OPT_FLAGS} -fPIC" CXXFLAGS="${RPM_OPT_FLAGS} -fPIC -std=c++11" ./configure --prefix=%{_prefix} --libdir=%{_libdir} --sysconfdir=%{_sysconfdir} --enable-shared=no --enable-static-module=yes --enable-unicode="yes:2w" --enable-cxx=yes --enable-mod=mysql=yes --enable-mod-uci=no ##CC=gcc44 CXX=g++44 CFLAGS="${RPM_OPT_FLAGS} -fPIC" CXXFLAGS="${RPM_OPT_FLAGS} -fPIC" ./configure --prefix=%{_prefix} --libdir=%{_libdir} --sysconfdir=%{_sysconfdir} --enable-shared=no --enable-static-module=yes --enable-dynamic-module=yes --enable-unicode="yes:2w" --enable-cxx=yes --enable-mod=mysql=yes --enable-mod-uci=no ##CC=gcc44 CXX=g++44
make make
%install %install
@ -40,6 +40,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig
rm -f $RPM_BUILD_ROOT%{_bindir}/uni-case rm -f $RPM_BUILD_ROOT%{_bindir}/uni-case
rm -f $RPM_BUILD_ROOT%{_bindir}/uni-prop rm -f $RPM_BUILD_ROOT%{_bindir}/uni-prop
rm -f $RPM_BUILD_ROOT%{_bindir}/hawk[0-9][0-9] ## delete binaries from the samples directory
%check %check
make check make check