summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBinh Nguyen <binhnguyen@fastmail.fm>2012-08-23 11:26:15 +0700
committerRobby Workman <rworkman@slackbuilds.org>2012-08-23 08:13:43 -0500
commitb2f8733f235ddbcdc75601b5cf4bb2478686d040 (patch)
treeb211ff2d4299c290072a70a42b57a196a0bb2a93
parent88bbbe43c1809d8c2a622f1ec494f55bae6fac4a (diff)
downloadslackbuilds-b2f8733f235ddbcdc75601b5cf4bb2478686d040.tar.gz
libraries/libgdiplus: Fixed to build against gcc-4.7.x
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--libraries/libgdiplus/libgdiplus.SlackBuild7
1 files changed, 6 insertions, 1 deletions
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