From 7317059a87e559a6e01be718a2713d3b2a0d6a7f Mon Sep 17 00:00:00 2001 From: ponce Date: Wed, 25 Jul 2012 12:50:34 +0200 Subject: libraries/libunique: Fixed build with gcc >= 4.6 and glib >= 2.31. Signed-off-by: Robby Workman --- libraries/libunique/libunique.SlackBuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libraries/libunique/libunique.SlackBuild') diff --git a/libraries/libunique/libunique.SlackBuild b/libraries/libunique/libunique.SlackBuild index f36af38192..27c8409f10 100644 --- a/libraries/libunique/libunique.SlackBuild +++ b/libraries/libunique/libunique.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=libunique VERSION=${VERSION:-1.1.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -53,6 +53,13 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# remove compiler warnings to make gcc-4.7 happy +patch -p1 < $CWD/libunique-1.1.6-compiler-warnings.patch + +# Remove G_CONST_RETURN usage, now that its gone in glib +# https://bugzilla.gnome.org/show_bug.cgi?id=652545 +patch -p1 < $CWD/libunique-1.1.6-G_CONST_RETURN.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ -- cgit v1.2.3