agg: fix build with gcc8

This commit is contained in:
Franz Pletz 2019-01-17 09:51:55 +01:00
parent 9b99fa86c1
commit a5e803c14b
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -10,6 +10,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ autoconf automake libtool freetype SDL libX11 ];
postPatch = ''
substituteInPlace include/agg_renderer_outline_aa.h \
--replace 'line_profile_aa& profile() {' 'const line_profile_aa& profile() {'
'';
# fix build with new automake, from Gentoo ebuild
preConfigure = ''
sed -i '/^AM_C_PROTOTYPES/d' configure.in