speed-dreams: fix build on ppc64le*
upstream: https://sourceforge.net/p/speed-dreams/tickets/1022/
This commit is contained in:
parent
476c4adc11
commit
bee59eaf85
2 changed files with 14 additions and 0 deletions
13
srcpkgs/speed-dreams/patches/compile-on-POWER.diff
Normal file
13
srcpkgs/speed-dreams/patches/compile-on-POWER.diff
Normal file
|
@ -0,0 +1,13 @@
|
|||
Index: src/modules/graphic/osggraph/Utils/OsgAtomic.h
|
||||
===================================================================
|
||||
--- src/modules/graphic/osggraph/Utils/OsgAtomic.h (revision 6789)
|
||||
+++ src/modules/graphic/osggraph/Utils/OsgAtomic.h (working copy)
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifndef OsgAtomic_H
|
||||
#define OsgAtomic_H
|
||||
|
||||
-#if defined(__GNUC__) && ((4 < __GNUC__)||(4 == __GNUC__ && 1 <= __GNUC_MINOR__)) && defined(__x86_64__)
|
||||
+#if defined(__GNUC__) && ((4 < __GNUC__)||(4 == __GNUC__ && 1 <= __GNUC_MINOR__)) && (defined(__x86_64__) || defined(__powerpc64__))
|
||||
// No need to include something. Is a Compiler API ...
|
||||
# define SDATOMIC_USE_GCC4_BUILTINS
|
||||
#elif defined(__GNUC__) && defined(__i386__)
|
|
@ -2,6 +2,7 @@
|
|||
pkgname=speed-dreams
|
||||
version=2.2.2
|
||||
revision=1
|
||||
archs="i686* x86_64* ppc64le*"
|
||||
_rev=r6553
|
||||
create_wrksrc=yes
|
||||
build_style=cmake
|
||||
|
|
Loading…
Reference in a new issue