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
This commit is contained in:
David E. O'Brien 2002-04-09 20:38:29 +00:00
parent 4ace33924b
commit 168ca73831
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94310

View File

@ -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