summaryrefslogtreecommitdiffstats
path: root/lib/libstand
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-09 20:38:29 +0000
committerobrien <obrien@FreeBSD.org>2002-04-09 20:38:29 +0000
commit5e7c6e11ad7e43f588675715a75d3f7efd2cac2d (patch)
treeaa6b62d5a0da4a0e9ae59ef90e41fd4e6e4b6567 /lib/libstand
parentc8e30faac7d997ad28fe6c7711b8c643854755ee (diff)
downloadFreeBSD-src-5e7c6e11ad7e43f588675715a75d3f7efd2cac2d.zip
FreeBSD-src-5e7c6e11ad7e43f588675715a75d3f7efd2cac2d.tar.gz
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
Diffstat (limited to 'lib/libstand')
-rw-r--r--lib/libstand/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile
index 17c4596..55b71b9 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
OpenPOWER on IntegriCloud