File: arch-ppc64.diff

package info (click to toggle)
emacs21 21.4a%2B1-3etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 59,104 kB
  • ctags: 58,909
  • sloc: lisp: 493,229; ansic: 237,175; xml: 4,262; sh: 4,109; makefile: 2,479; perl: 1,069; cs: 776; asm: 254; csh: 9; sed: 4
file content (53 lines) | stat: -rw-r--r-- 1,677 bytes parent folder | download | duplicates (3)
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
52
53
* Support for the ppc64 (powerpc64) architecture has been added.
  Patch: arch-ppc64.diff
  Provided-by: Jerome Marant <jerome@debian.org>
  Added-by: Jerome Marant <jerome@debian.org>
  Date: Sun,  1 May 2005 15:01:13 +0200
  Status: has been incorporated upstream

diff -urNad emacs21-21.4a/configure.in /tmp/dpep.HHmGHE/emacs21-21.4a/configure.in
--- emacs21-21.4a/configure.in	2005-05-01 14:24:47.769683616 +0200
+++ /tmp/dpep.HHmGHE/emacs21-21.4a/configure.in	2005-05-01 14:56:03.818480848 +0200
@@ -278,11 +278,6 @@
     machine=arm opsys=gnu-linux
   ;;
 
-  ppc-*-linux | \
-  powerpc-*-linux* )
-    machine=macppc opsys=gnu-linux
-  ;;
-
   ## Altos 3068
   m68*-altos-sysv* )
     machine=altos opsys=usg5-2
diff -urNad emacs21-21.4a/src/m/macppc.h /tmp/dpep.HHmGHE/emacs21-21.4a/src/m/macppc.h
--- emacs21-21.4a/src/m/macppc.h	2001-10-23 08:43:33.000000000 +0200
+++ /tmp/dpep.HHmGHE/emacs21-21.4a/src/m/macppc.h	2005-05-01 14:55:48.356831376 +0200
@@ -95,11 +95,16 @@
 
 #ifdef LINUX
 #define LINKER $(CC) -nostdlib
-#define LD_SWITCH_MACHINE -Xlinker -m -Xlinker elf32ppc
 /* s/gnu-linux.h defines this to `-z nocombreloc' which does not work here
    because prefix-args is not used.  */
 #undef LD_SWITCH_SYSTEM_TEMACS
 #define LD_SWITCH_MACHINE_TEMACS -Xlinker -znocombreloc
+#ifdef _ARCH_PPC64
+#undef START_FILES
+#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
+#undef LIB_STANDARD
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
+#endif
 #endif
 
 #if 0  /* This breaks things on PPC GNU/Linux ecept for Yellowdog,
@@ -113,3 +118,9 @@
 #endif
 #endif
 #endif /* 0 */
+
+#ifdef _ARCH_PPC64
+#ifndef _LP64
+#define _LP64
+#endif
+#endif