diff options
-rw-r--r-- | system/gxemul/0.6.0-gcc46.patch | 16 | ||||
-rw-r--r-- | system/gxemul/gxemul.SlackBuild | 5 |
2 files changed, 20 insertions, 1 deletions
diff --git a/system/gxemul/0.6.0-gcc46.patch b/system/gxemul/0.6.0-gcc46.patch new file mode 100644 index 0000000000..eb0ce26b6e --- /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 <stddef.h> ++ + /* + * Copyright (C) 2007-2010 Anders Gavare. All rights reserved. + * diff --git a/system/gxemul/gxemul.SlackBuild b/system/gxemul/gxemul.SlackBuild index 93f48fec9b..56c94a9f46 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 |