From a385e70cb3d6f555ee09ff7e0098329585ea75c3 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Tue, 18 Sep 2012 05:53:57 +0200 Subject: system/gxemul: Added a patch for gcc>=4.6. Signed-off-by: Matteo Bernardini --- system/gxemul/0.6.0-gcc46.patch | 16 ++++++++++++++++ system/gxemul/gxemul.SlackBuild | 5 ++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 system/gxemul/0.6.0-gcc46.patch (limited to 'system/gxemul') diff --git a/system/gxemul/0.6.0-gcc46.patch b/system/gxemul/0.6.0-gcc46.patch new file mode 100644 index 000000000000..eb0ce26b6e1c --- /dev/null +++ b/system/gxemul/0.6.0-gcc46.patch @@ -0,0 +1,16 @@ + src/include/refcount_ptr.h | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/src/include/refcount_ptr.h b/src/include/refcount_ptr.h +index 4645769..ebabd58 100644 +--- a/src/include/refcount_ptr.h ++++ b/src/include/refcount_ptr.h +@@ -1,6 +1,8 @@ + #ifndef REFCOUNT_PTR_H + #define REFCOUNT_PTR_H + ++#include ++ + /* + * Copyright (C) 2007-2010 Anders Gavare. All rights reserved. + * diff --git a/system/gxemul/gxemul.SlackBuild b/system/gxemul/gxemul.SlackBuild index 93f48fec9b6f..56c94a9f4613 100644 --- a/system/gxemul/gxemul.SlackBuild +++ b/system/gxemul/gxemul.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=gxemul VERSION=${VERSION:-0.6.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -53,6 +53,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Fix needed for gcc>=4.6.x (thanks gentoo) +patch -p1 < $CWD/0.6.0-gcc46.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure -- cgit v1.2.3