]> code.delx.au - gnu-emacs/commitdiff
(LD_SWITCH_MACHINE) [LINUX]: Don't define.
authorAndreas Schwab <schwab@suse.de>
Sat, 23 Apr 2005 15:58:32 +0000 (15:58 +0000)
committerAndreas Schwab <schwab@suse.de>
Sat, 23 Apr 2005 15:58:32 +0000 (15:58 +0000)
(START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
use lib64 instead of lib.
(_LP64) [_ARCH_PPC64]: Define if not defined.

src/m/macppc.h

index 21ba90ad1012b03a47d99d4a26c53d06fda22948..c068fca32a903f6846d667e421c1bf37c933798e 100644 (file)
@@ -86,11 +86,16 @@ Boston, MA 02111-1307, USA.  */
 
 #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/lib64/crt1.o /usr/lib64/crti.o
+#undef LIB_STANDARD
+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o
+#endif
 #endif
 
 #if 0  /* This breaks things on PPC GNU/Linux ecept for Yellowdog,
@@ -105,5 +110,11 @@ Boston, MA 02111-1307, USA.  */
 #endif
 #endif /* 0 */
 
+#ifdef _ARCH_PPC64
+#ifndef _LP64
+#define _LP64
+#endif
+#endif
+
 /* arch-tag: 41913e4e-e7d1-4023-aadb-210cc31712ed
    (do not change this comment) */