[Debian GNUstep maintainers] Bug#753961: gnustep-base: fix mips64(el) build
Yunqiang Su
wzssyqa at gmail.com
Sun Jul 6 17:12:14 UTC 2014
Package: gnustep-base
Version: 1.24.6-1
Gcc defines __mips64 only for mips 64 bit platforms, while
__mips64__ is not defined.
--
Yunqiang Su
-------------- next part --------------
Index: gnustep-base-1.24.0/Source/NSObject.m
===================================================================
--- gnustep-base-1.24.0.orig/Source/NSObject.m 2011-12-15 09:42:39.000000000 +0000
+++ gnustep-base-1.24.0/Source/NSObject.m 2014-07-06 15:17:31.295819785 +0000
@@ -340,7 +340,7 @@
int tmp;
__asm__ __volatile__ (
-#if !defined(__mips64__)
+#if !defined(__mips64)
" .set mips2 \n"
#endif
"0: ll %0, %1 \n"
@@ -357,7 +357,7 @@
int tmp;
__asm__ __volatile__ (
-#if !defined(__mips64__)
+#if !defined(__mips64)
" .set mips2 \n"
#endif
"0: ll %0, %1 \n"
Index: gnustep-base-1.24.0/config/config.trampoline.c
===================================================================
--- gnustep-base-1.24.0.orig/config/config.trampoline.c 2007-03-18 04:47:04.000000000 +0000
+++ gnustep-base-1.24.0/config/config.trampoline.c 2014-07-06 15:17:49.455819783 +0000
@@ -42,7 +42,7 @@
#ifdef __mips__
register void* env __asm__("$2");
#endif
-#ifdef __mips64__
+#ifdef __mips64
register void* env __asm__("$2");
#endif
#if defined(__sparc__) && !defined(__sparc64__)
More information about the pkg-GNUstep-maintainers
mailing list