zsnes: manual header magic is no longer needed with the gcc-4.8 patch

This commit is contained in:
Mathijs Kwik 2014-01-05 18:51:57 +01:00
parent 0f3155f246
commit 10c15d5861

View File

@ -19,25 +19,8 @@ stdenv.mkDerivation {
preConfigure = ''
cd src
sed -i "/^STRIP/d" configure
# Fix for undefined strncasecmp()
echo '#include <strings.h>' > tmp.cpp
cat tmp.cpp tools/strutil.h > tools/strutil.h.new
mv tools/strutil.h.new tools/strutil.h
# Fix for undefined system()
echo '#include <stdlib.h>' > tmp.cpp
cat tmp.cpp tools/depbuild.cpp > tools/depbuild.cpp.new
mv tools/depbuild.cpp.new tools/depbuild.cpp
# Fix for lots of undefined strcmp, strncmp etc.
echo '#include <string.h>' > tmp.cpp
cat tmp.cpp parsegen.cpp > parsegen.cpp.new
mv parsegen.cpp.new parsegen.cpp
'';
configureFlags = "--enable-release";