summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Saab <ps@FreeBSD.org>2000-12-28 12:04:04 +0000
committerPaul Saab <ps@FreeBSD.org>2000-12-28 12:04:04 +0000
commit80657d34b67e5bea8140a62c8434b8fda5e9e99d (patch)
treefc6a49617005ab02b41097c2343cc42b5a9692c3
parent01e20a674ca3cbe02712a6df86bd8b2944af7ac7 (diff)
Notes
-rw-r--r--lib/libstand/Makefile4
-rw-r--r--sys/boot/ficl/Makefile3
-rw-r--r--sys/boot/i386/Makefile.inc1
3 files changed, 8 insertions, 0 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile
index 52d3d4f6044d..b9a5ddfafcb5 100644
--- a/lib/libstand/Makefile
+++ b/lib/libstand/Makefile
@@ -18,6 +18,10 @@ CFLAGS+= -Wall
.if ${MACHINE_ARCH} == "alpha"
CFLAGS+= -mno-fp-regs
.endif
+.if ${MACHINE_ARCH} == "i386"
+CFLAGS+= -mpreferred-stack-boundary=2
+.endif
+
# standalone components and stuff we have modified locally
SRCS+= __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile
index 88e32995bbba..4f19de874cac 100644
--- a/sys/boot/ficl/Makefile
+++ b/sys/boot/ficl/Makefile
@@ -7,6 +7,9 @@ CLEANFILES= softcore.c testmain testmain.o
.if ${MACHINE_ARCH} == "alpha"
CFLAGS+= -mno-fp-regs
.endif
+.if ${MACHINE_ARCH} == "i386"
+CFLAGS+= -mpreferred-stack-boundary=2
+.endif
.ifmake testmain
CFLAGS+= -DTESTMAIN -D_TESTMAIN
SRCS+= testmain.c
diff --git a/sys/boot/i386/Makefile.inc b/sys/boot/i386/Makefile.inc
index 4c20c10ac163..fa5ea569e609 100644
--- a/sys/boot/i386/Makefile.inc
+++ b/sys/boot/i386/Makefile.inc
@@ -3,3 +3,4 @@
# $FreeBSD$
LOADER_ADDRESS?= 0x200000
+CFLAGS+= -mpreferred-stack-boundary=2