diff options
author | ponce | 2012-07-25 12:50:34 +0200 |
---|---|---|
committer | Robby Workman | 2012-08-21 15:55:34 +0200 |
commit | 7317059a87e559a6e01be718a2713d3b2a0d6a7f (patch) | |
tree | 73c53f9e8e158897310e45ab24c91688e9a71d53 /libraries/libunique/libunique.SlackBuild | |
parent | 6672028785495935b5380fc24d38c3fa09372087 (diff) | |
download | slackbuilds-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.SlackBuild | 9 |
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 \ |