From b2f8733f235ddbcdc75601b5cf4bb2478686d040 Mon Sep 17 00:00:00 2001 From: Binh Nguyen Date: Thu, 23 Aug 2012 11:26:15 +0700 Subject: [PATCH] libraries/libgdiplus: Fixed to build against gcc-4.7.x Signed-off-by: Robby Workman --- libraries/libgdiplus/libgdiplus.SlackBuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libraries/libgdiplus/libgdiplus.SlackBuild b/libraries/libgdiplus/libgdiplus.SlackBuild index 551f2c5308..f2a6132752 100644 --- a/libraries/libgdiplus/libgdiplus.SlackBuild +++ b/libraries/libgdiplus/libgdiplus.SlackBuild @@ -26,7 +26,7 @@ PRGNAM=libgdiplus VERSION=2.10.9 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -79,6 +79,11 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-static \ --build=$ARCH-slackware-linux +# Quick fix borrowed from: +# https://www.slacky.eu/asche64/pkgreports/ +sed -i "s/^LIBS = -lpthread -lfontconfig $/\ + LIBS = -lpthread -lfontconfig -lglib-2.0 -lX11/" tests/Makefile + make make install-strip DESTDIR=$PKG