summaryrefslogtreecommitdiffstats
path: root/libraries/libunique/libunique.SlackBuild
diff options
context:
space:
mode:
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 \