diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-18 05:53:57 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-18 19:33:38 -0500 |
commit | a385e70cb3d6f555ee09ff7e0098329585ea75c3 (patch) | |
tree | d7798ad3c8db730b910c11b73ab5e60da56dace7 /system/gxemul | |
parent | 71b64e2e4947a3d40b33a11ff34adf2b097663be (diff) |
system/gxemul: Added a patch for gcc>=4.6.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/gxemul')
-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 0000000000000..eb0ce26b6e1c8 --- /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 93f48fec9b6f7..56c94a9f4613b 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 |