From 210e9f0b261a684b13b00015154b3d2ff0b705e9 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Wed, 3 Sep 2003 06:56:42 +1000 Subject: [PATCH] ppc64: fix gcc 3.3 compile --- arch/ppc64/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/ppc64/Makefile b/arch/ppc64/Makefile index cada0f341188f..89718e4752ed8 100644 --- a/arch/ppc64/Makefile +++ b/arch/ppc64/Makefile @@ -20,6 +20,12 @@ LDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD) CFLAGS += -msoft-float -pipe -Wno-uninitialized -mminimal-toc \ -mtraceback=full -mcpu=power4 +have_zero_bss := $(shell if $(CC) -fno-zero-initialized-in-bss -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo y; else echo n; fi) + +ifeq ($(have_zero_bss),y) +CFLAGS += -fno-zero-initialized-in-bss +endif + head-y := arch/ppc64/kernel/head.o libs-y += arch/ppc64/lib/ -- 2.53.0