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

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)