1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
Forwarded: not-needed
From: Christoph Egger <debian@christoph-egger.org>
Subject: [PATCH] debian/arch-support
Building on non-linux architectures currently fails with unpatched
irrlicht because irrlicht tries to create Joystick support using
linux-specific headers. However there's infrastructure to disable
Joystick support, we just need to activate that on non-linux
architectures.
Additionally if built on a sparc machine irrlicht assumes wrongly it's
a solaris system. We fix this wrong assumption as our sparc builds are
all on linux.
Finally irrlicht exceeds the size constraights for -fpic requiring to
build with -fPIC. As upstream doesn't do that we need to fix this for
sparc and s390 builds (powerPC?).
Signed-off-by: Christoph Egger <debian@christoph-egger.org>
---
lib/irrlicht/include/IrrCompileConfig.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
--- a/lib/irrlicht/include/IrrCompileConfig.h
+++ b/lib/irrlicht/include/IrrCompileConfig.h
@@ -116,6 +116,10 @@
#if !defined(_IRR_WINDOWS_API_) && !defined(_IRR_OSX_PLATFORM_) && !defined(_IRR_ANDROID_PLATFORM_) && !defined(_IRR_HAIKU_PLATFORM_)
#ifndef _IRR_SOLARIS_PLATFORM_
#define _IRR_LINUX_PLATFORM_
+#include <endian.h>
+ #if __BYTE_ORDER == __BIG_ENDIAN
+ #define __BIG_ENDIAN__
+ #endif
#endif
#define _IRR_POSIX_API_
#endif
@@ -469,11 +473,7 @@
#undef _IRR_WCHAR_FILESYSTEM
#endif
-#if defined(__sparc__) || defined(__sun__)
-#define __BIG_ENDIAN__
-#endif
-
-#if defined(_IRR_SOLARIS_PLATFORM_)
+#if defined(_IRR_SOLARIS_PLATFORM_) || defined(__FreeBSD_kernel__) || defined(__gnu_hurd__)
#undef _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
#endif
|