patch speed/main.cpp for new version of gcc

This commit is contained in:
Bradley M. Bell 2008-04-04 12:28:25 +00:00
commit 01c26697db

View file

@ -16,7 +16,7 @@
Name: cppad
Version: 20080403
Release: 2%{?dist}
Release: 3%{?dist}
Summary: no base package is installed, see %{name}-devel and %{name}-doc
Group: Development/Libraries
@ -57,6 +57,11 @@ the %{name}-devel package.
%prep
%setup -q
# fix errors errors found by newer version of gcc
sed -i.stamp speed/main.cpp \
-e 's/^# include <cstdlib>/# include <cstring>\n&/' \
-e 's/char \*option\[\]=/const &/'
# change example/example.cpp to print out machine epsilon
cat << EOF > example.sed
/^int main(void)/N
@ -115,6 +120,10 @@ rm -rf $RPM_BUILD_ROOT
# ----------------------------------------------------------------------------
%changelog
* Fri Apr 04 2008 Brad Bell <bradbell at seanet dot com> 20080403-3
- Patch speed/main.cpp work with newer version of gcc
- (speed/main.cpp had not been tested with new version of gcc.)
* Thu Apr 03 2008 Brad Bell <bradbell at seanet dot com> 20080403-2
- Upload new source with the command
- make new-sources FILES="cppad-20080403.gpl.tgz"