summaryrefslogtreecommitdiff
path: root/libraries/libunique/libunique.SlackBuild
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2012-07-25 12:50:34 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-08-21 08:55:34 -0500
commit7317059a87e559a6e01be718a2713d3b2a0d6a7f (patch)
tree73c53f9e8e158897310e45ab24c91688e9a71d53 /libraries/libunique/libunique.SlackBuild
parent6672028785495935b5380fc24d38c3fa09372087 (diff)
downloadslackbuilds-7317059a87e559a6e01be718a2713d3b2a0d6a7f.tar.gz
libraries/libunique: Fixed build with gcc >= 4.6 and glib >= 2.31.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libunique/libunique.SlackBuild')
-rw-r--r--libraries/libunique/libunique.SlackBuild9
1 files changed, 8 insertions, 1 deletions
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 \