patch-2.4.22 linux-2.4.22/arch/ppc64/Makefile
Next file: linux-2.4.22/arch/ppc64/boot/Makefile
Previous file: linux-2.4.22/arch/ppc/xmon/xmon.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/ppc64/Makefile
- Orig date:
2002-11-28 15:53:11.000000000 -0800
diff -urN linux-2.4.21/arch/ppc64/Makefile linux-2.4.22/arch/ppc64/Makefile
@@ -19,6 +19,13 @@
CHECKS = checks
endif
+HAS_BIARCH := $(shell if gcc -m64 -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo y; else echo n; fi;)
+ifeq ($(HAS_BIARCH),y)
+AS := $(AS) -64
+LD := $(LD) -m elf64ppc
+CC := gcc -m64
+endif
+
LINKFLAGS = -T arch/ppc64/vmlinux.lds -Bstatic \
-e $(KERNELLOAD) -Ttext $(KERNELLOAD)
CFLAGS := $(CFLAGS) -fsigned-char -msoft-float -pipe \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)