libraries/libgdiplus: Fixed to build against gcc-4.7.x

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Binh Nguyen 2012-08-23 11:26:15 +07:00 committed by Robby Workman
parent 88bbbe43c1
commit b2f8733f23

View file

@ -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