aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/libstand32
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2015-08-27 23:46:42 +0000
committerWarner Losh <imp@FreeBSD.org>2015-08-27 23:46:42 +0000
commit9d2edd63d4d10fb2cd9732a602706d8990892c54 (patch)
tree4b5ef87fae8f2c0ca7f1556f0b1c771c81437d7b /sys/boot/libstand32
parentae1f3df43466466a21c7da0df93ecb58a3e53d74 (diff)
Use CFLAGS_NO_SIMD in preference to varying lists of -mno-xxxx flags.
Go ahead and defined -D_STANDALONE for all targets (only strictly needed for some architecture, but harmless on those it isn't required for). Also add -msoft-float to all architectures uniformly rather that higgley piggley like it is today. Differential Revision: https://reviews.freebsd.org/D3496
Notes
Notes: svn path=/head/; revision=287227
Diffstat (limited to 'sys/boot/libstand32')
-rw-r--r--sys/boot/libstand32/Makefile24
1 files changed, 1 insertions, 23 deletions
diff --git a/sys/boot/libstand32/Makefile b/sys/boot/libstand32/Makefile
index c41dc21f6c50..93aec6077c57 100644
--- a/sys/boot/libstand32/Makefile
+++ b/sys/boot/libstand32/Makefile
@@ -22,29 +22,6 @@ NO_PIC=
WARNS?= 0
-CFLAGS+= -ffreestanding -Wformat
-CFLAGS+= -I${LIBSTAND_SRC}
-
-.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
-CFLAGS.gcc+= -mpreferred-stack-boundary=2
-CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
-.endif
-.if ${MACHINE} == "pc98"
-CFLAGS+= -Os
-.endif
-.if ${MACHINE_CPUARCH} == "powerpc"
-CFLAGS+= -msoft-float -D_STANDALONE -DNETIF_DEBUG
-.endif
-.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc64"
-CFLAGS+= -m32 -I.
-.endif
-.if ${MACHINE_CPUARCH} == "arm"
-CFLAGS+= -msoft-float -D_STANDALONE
-.endif
-.if ${MACHINE_CPUARCH} == "mips"
-CFLAGS+= -G0 -fno-pic -mno-abicalls
-.endif
-
# standalone components and stuff we have modified locally
SRCS+= gzguts.h zutil.h __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \
globals.c pager.c printf.c strdup.c strerror.c strtol.c strtoul.c random.c \
@@ -164,6 +141,7 @@ SRCS+= pkgfs.c
SRCS+= nandfs.c
.endif
+.include <bsd.stand.mk>
.include <bsd.lib.mk>
.if ${MACHINE_CPUARCH} == "amd64"