summaryrefslogtreecommitdiffstats
path: root/lib/libstand
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2015-08-27 23:46:42 +0000
committerimp <imp@FreeBSD.org>2015-08-27 23:46:42 +0000
commitd1be0bf24ec398e1f5f1634ccfb0a2e102caf3dc (patch)
tree4b5ef87fae8f2c0ca7f1556f0b1c771c81437d7b /lib/libstand
parent05c9f26dff59dbf912171e997071d42c9f2c866e (diff)
downloadFreeBSD-src-d1be0bf24ec398e1f5f1634ccfb0a2e102caf3dc.zip
FreeBSD-src-d1be0bf24ec398e1f5f1634ccfb0a2e102caf3dc.tar.gz
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
Diffstat (limited to 'lib/libstand')
-rw-r--r--lib/libstand/Makefile27
1 files changed, 1 insertions, 26 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile
index 2ee2921..a038087 100644
--- a/lib/libstand/Makefile
+++ b/lib/libstand/Makefile
@@ -21,34 +21,8 @@ MAN= libstand.3
WARNS?= 0
-CFLAGS+= -ffreestanding -Wformat
CFLAGS+= -I${LIBSTAND_SRC}
-.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
-CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
-.endif
-.if ${MACHINE_CPUARCH} == "i386"
-CFLAGS.gcc+= -mpreferred-stack-boundary=2
-.endif
-.if ${MACHINE_CPUARCH} == "amd64"
-CFLAGS+= -fPIC -mno-red-zone
-.endif
-.if ${MACHINE} == "pc98"
-CFLAGS+= -Os
-.endif
-.if ${MACHINE_CPUARCH} == "powerpc"
-CFLAGS+= -msoft-float -D_STANDALONE -DNETIF_DEBUG
-.endif
-.if ${MACHINE_CPUARCH} == "arm"
-CFLAGS+= -msoft-float -D_STANDALONE
-.endif
-.if ${MACHINE_CPUARCH} == "aarch64"
-CFLAGS+= -D_STANDALONE -mgeneral-regs-only
-.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 \
@@ -168,4 +142,5 @@ SRCS+= pkgfs.c
SRCS+= nandfs.c
.endif
+.include <bsd.stand.mk>
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud