diff -Nurd -x'*~' gliv-1.9.7.orig/Makefile.in gliv-1.9.7/Makefile.in --- gliv-1.9.7.orig/Makefile.in 2010-11-07 14:22:01.000000000 -0500 +++ gliv-1.9.7/Makefile.in 2016-10-31 00:12:22.000000000 -0400 @@ -783,9 +783,9 @@ @echo @if desktop-file-install --help > /dev/null 2>&1; then \ echo "Installing the GLiv desktop file with desktop-file-install"; \ - mkdir -p $(datadir)/{pixmaps,applications} || true; \ - cp gliv.png $(datadir)/pixmaps/gliv.png || true; \ - desktop-file-install --vendor=gnome --dir=$(datadir)/applications \ + mkdir -p $(DESTDIR)$(datadir)/{pixmaps,applications} || true; \ + cp gliv.png $(DESTDIR)$(datadir)/pixmaps/gliv.png || true; \ + desktop-file-install --vendor=gnome --dir=$(DESTDIR)$(datadir)/applications \ gliv.desktop || true; \ else \ echo "No desktop-file-install(1), skipping gliv.desktop"; \ diff -Nurd -x'*~' gliv-1.9.7.orig/configure gliv-1.9.7/configure --- gliv-1.9.7.orig/configure 2010-11-07 14:22:01.000000000 -0500 +++ gliv-1.9.7/configure 2016-10-31 00:08:30.000000000 -0400 @@ -5204,7 +5204,7 @@ if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math" fi -CFLAGS="$CFLAGS -I${srcdir}/../lib" +CPPFLAGS="-I${srcdir}/../lib $CPPFLAGS" # Checks for LFS flags, we may not handle big files, but it doesn't hurt. # Check whether --enable-largefile was given. @@ -7298,8 +7298,8 @@ $as_echo "yes" >&6; } fi -CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS" -LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS" +CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS `$PKG_CONFIG --cflags glu`" +LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS `$PKG_CONFIG --libs glu`" GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)" # Checks for OpenGL. @@ -12848,7 +12848,7 @@ -CFLAGS="$CFLAGS -I../${srcdir}/intl" +CPPFLAGS="-I../${srcdir}/intl $CPPFLAGS" LIBS="$LIBS $LIBINTL" diff -Nurd -x'*~' gliv-1.9.7.orig/lib/getdelim.c gliv-1.9.7/lib/getdelim.c --- gliv-1.9.7.orig/lib/getdelim.c 2010-11-07 14:22:01.000000000 -0500 +++ gliv-1.9.7/lib/getdelim.c 2016-10-31 00:00:22.000000000 -0400 @@ -9,6 +9,7 @@ #include "stdio.h" #include "stdlib.h" +#include #include "getdelim.h" /* Note: There is a defect in this function. (size_t vs long). */