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:
parent
32734b0beb
commit
bf968c7e19
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user