From 168ca73831a54424a6e1399ffa109b8f3618d1c7 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 9 Apr 2002 20:38:29 +0000 Subject: [PATCH] Use -ffreestanding. It is REQUIRED by GCC 3.1 on all architectures. I don't like putting this very-GCC centric option here; but no one as given a better idea of handling it. Reviewed by: jhb --- lib/libstand/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile index 17c45967e0a7..55b71b9ee4b6 100644 --- a/lib/libstand/Makefile +++ b/lib/libstand/Makefile @@ -11,6 +11,8 @@ NOPROFILE= YES NOPIC= YES MAN= libstand.3 +CFLAGS+= -ffreestanding + .if ${MACHINE_ARCH} == "alpha" CFLAGS+= -mno-fp-regs .endif @@ -100,8 +102,6 @@ SRCS+= bcmp.c bcopy.S bzero.S ffs.S index.c memccpy.c memchr.c memcmp.c \ .PATH: ${.CURDIR}/../libc/ia64/gen SRCS+= __divdi3.S __divsi3.S __moddi3.S __modsi3.S SRCS+= __udivdi3.S __udivsi3.S __umoddi3.S __umodsi3.S -# XXX should be global -CFLAGS+= -ffreestanding .endif # _setjmp/_longjmp