summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/stand/Makefile.inc3
-rw-r--r--sys/arch/amd64/stand/Makefile.inc4
-rw-r--r--sys/arch/hp300/stand/Makefile.inc3
-rw-r--r--sys/arch/hppa/stand/Makefile.inc4
-rw-r--r--sys/arch/i386/stand/Makefile.inc4
-rw-r--r--sys/arch/macppc/stand/Makefile.inc4
-rw-r--r--sys/arch/mvme68k/stand/Makefile.inc4
-rw-r--r--sys/arch/mvme88k/stand/Makefile.inc4
-rw-r--r--sys/arch/mvmeppc/stand/Makefile.inc4
-rw-r--r--sys/arch/sparc/stand/Makefile.inc3
-rw-r--r--sys/arch/sparc/stand/libsa/Makefile4
-rw-r--r--sys/arch/sparc64/stand/Makefile.inc3
12 files changed, 24 insertions, 20 deletions
diff --git a/sys/arch/alpha/stand/Makefile.inc b/sys/arch/alpha/stand/Makefile.inc
index d71f2ca141c..5c1e5d62d1a 100644
--- a/sys/arch/alpha/stand/Makefile.inc
+++ b/sys/arch/alpha/stand/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.7 2002/12/02 09:00:22 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.8 2004/07/13 21:03:36 marc Exp $
# $NetBSD: Makefile.inc,v 1.8 1997/04/06 08:39:38 cgd Exp $
.include <bsd.own.mk> # for ELF_TOOLCHAIN definition
@@ -17,6 +17,7 @@ CPPFLAGS+= -DPRIMARY_LOAD_ADDRESS="0x${PRIMARY_LOAD_ADDRESS}"
CPPFLAGS+= -DSECONDARY_LOAD_ADDRESS="0x${SECONDARY_LOAD_ADDRESS}"
CPPFLAGS+= -D_STANDALONE
+CPPFLAGS+= -Derrno=errno
XCPPFLAGS+= -DHEAP_LIMIT="0x${HEAP_LIMIT}"
diff --git a/sys/arch/amd64/stand/Makefile.inc b/sys/arch/amd64/stand/Makefile.inc
index 8a995ebab4a..1c59ab6f0b6 100644
--- a/sys/arch/amd64/stand/Makefile.inc
+++ b/sys/arch/amd64/stand/Makefile.inc
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile.inc,v 1.1 2004/02/03 12:09:47 mickey Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2004/07/13 21:03:36 marc Exp $
CFLAGS=${DEBUG} ${COPTS} -Os -Wall -Werror
CFLAGS+= -fno-stack-protector
-CPPFLAGS+=-I${S} -I${SADIR}/libsa -I. -I${.CURDIR}
+CPPFLAGS+=-I${S} -I${SADIR}/libsa -I. -I${.CURDIR} -Derrno=errno
SACFLAGS=-D_STANDALONE
DEBUGLIBS=no
DEBUGFLAGS=
diff --git a/sys/arch/hp300/stand/Makefile.inc b/sys/arch/hp300/stand/Makefile.inc
index 524af1b2d99..6c759c80fd2 100644
--- a/sys/arch/hp300/stand/Makefile.inc
+++ b/sys/arch/hp300/stand/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.4 2002/12/02 09:00:23 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.5 2004/07/13 21:03:37 marc Exp $
# $NetBSD: Makefile.inc,v 1.7 1997/05/12 07:43:18 thorpej Exp $
BINDIR= /usr/mdec
@@ -13,6 +13,7 @@ CPPFLAGS+= -DHIL_KEYBOARD -DUK_KEYBOARD
CPPFLAGS+= -DDOMAIN_KEYBOARD
CPPFLAGS+= -DSTANDALONE -Dhp300
CPPFLAGS+= -DCOMPAT_UFS -DNO_LSEEK
+CPPFLAGS+= -Derrno=errno
# Limit the alloc() heap to below the msgbuf and ROM scratch pages.
CPPFLAGS+= -DHEAP_LIMIT="0xffffdfff"
diff --git a/sys/arch/hppa/stand/Makefile.inc b/sys/arch/hppa/stand/Makefile.inc
index 13574c91666..10c2f2c83a0 100644
--- a/sys/arch/hppa/stand/Makefile.inc
+++ b/sys/arch/hppa/stand/Makefile.inc
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile.inc,v 1.12 2003/04/30 06:02:27 mickey Exp $
+# $OpenBSD: Makefile.inc,v 1.13 2004/07/13 21:03:37 marc Exp $
CFLAGS=${DEBUG} -Os -Wall -Werror
-CPPFLAGS+=-I${S} -I. -I${.CURDIR}
+CPPFLAGS+=-I${S} -I. -I${.CURDIR} -Derrno=errno
SACFLAGS=-nostdinc -fno-builtin -D_STANDALONE -I${STANDIR}/libsa
SACFLAGS+=-mdisable-fpregs -mfast-indirect-calls -mpa-risc-1-1
SACFLAGS+=-fno-stack-protector
diff --git a/sys/arch/i386/stand/Makefile.inc b/sys/arch/i386/stand/Makefile.inc
index 313b680bd91..694a2787857 100644
--- a/sys/arch/i386/stand/Makefile.inc
+++ b/sys/arch/i386/stand/Makefile.inc
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile.inc,v 1.34 2003/08/08 07:37:15 deraadt Exp $
+# $OpenBSD: Makefile.inc,v 1.35 2004/07/13 21:03:38 marc Exp $
CFLAGS=${DEBUG} ${COPTS} -Os -Wall -Werror
CFLAGS+= -fno-stack-protector
-CPPFLAGS+=-I${S} -I${SADIR}/libsa -I. -I${.CURDIR}
+CPPFLAGS+=-I${S} -I${SADIR}/libsa -I. -I${.CURDIR} -Derrno=errno
SACFLAGS=-D_STANDALONE
DEBUGLIBS=no
DEBUGFLAGS=
diff --git a/sys/arch/macppc/stand/Makefile.inc b/sys/arch/macppc/stand/Makefile.inc
index 112d4bb0d15..7919d526242 100644
--- a/sys/arch/macppc/stand/Makefile.inc
+++ b/sys/arch/macppc/stand/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.4 2004/01/09 16:50:30 drahn Exp $
+# $OpenBSD: Makefile.inc,v 1.5 2004/07/13 21:03:38 marc Exp $
# $NetBSD: Makefile.inc,v 1.1 1996/09/30 16:34:59 ws Exp $
.if !defined(__stand_makefile_inc)
@@ -20,7 +20,7 @@ ENTRY?= _start
INCLUDES+= -I. -I$(.OBJDIR) -I$(.CURDIR)/.. -I$(S)/arch -I$(S)
INCLUDES+= -I$(S)/lib/libsa
-DEFS+= -DSTANDALONE -DFIREPOWERBUGS
+DEFS+= -DSTANDALONE -DFIREPOWERBUGS -Derrno=errno
CFLAGS+= $(INCLUDES) $(DEFS) $(EXTRACFLAGS)
CFLAGS+= -fno-stack-protector
CFLAGS+= -fno-builtin-vprintf -fno-builtin-printf -fno-builtin-putchar
diff --git a/sys/arch/mvme68k/stand/Makefile.inc b/sys/arch/mvme68k/stand/Makefile.inc
index e622ccccb11..928347116a9 100644
--- a/sys/arch/mvme68k/stand/Makefile.inc
+++ b/sys/arch/mvme68k/stand/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.4 2002/12/02 09:00:24 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.5 2004/07/13 21:03:38 marc Exp $
MDEC_DIR?=/usr/mdec
-CFLAGS+= -fno-stack-protector
+CFLAGS+= -fno-stack-protector -Derrno=errno
diff --git a/sys/arch/mvme88k/stand/Makefile.inc b/sys/arch/mvme88k/stand/Makefile.inc
index bb712aaa08d..8626cbe8a08 100644
--- a/sys/arch/mvme88k/stand/Makefile.inc
+++ b/sys/arch/mvme88k/stand/Makefile.inc
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile.inc,v 1.7 2003/10/11 22:08:57 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.8 2004/07/13 21:03:38 marc Exp $
MDEC_DIR?=/usr/mdec
-CFLAGS+= -fno-stack-protector -mmemcpy
+CFLAGS+= -fno-stack-protector -mmemcpy -Derrno=errno
# Load addresses for first and second stage bootstraps
STAGE1_RELOC=0x009F0000
diff --git a/sys/arch/mvmeppc/stand/Makefile.inc b/sys/arch/mvmeppc/stand/Makefile.inc
index e14f6de44eb..399eafdf4bb 100644
--- a/sys/arch/mvmeppc/stand/Makefile.inc
+++ b/sys/arch/mvmeppc/stand/Makefile.inc
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile.inc,v 1.2 2002/12/02 09:00:25 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2004/07/13 21:03:38 marc Exp $
MDEC_DIR?=/usr/mdec
-CFLAGS+= -fno-stack-protector
+CFLAGS+= -fno-stack-protector -Derrno=errno
# Load addresses for first and second stage bootstraps
STAGE1_RELOC=4000
diff --git a/sys/arch/sparc/stand/Makefile.inc b/sys/arch/sparc/stand/Makefile.inc
index 1c1d5e4417d..da717ed50b9 100644
--- a/sys/arch/sparc/stand/Makefile.inc
+++ b/sys/arch/sparc/stand/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.11 2002/12/02 09:00:25 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.12 2004/07/13 21:03:38 marc Exp $
# $NetBSD: Makefile.inc,v 1.5 1996/02/01 22:33:01 mycroft Exp $
BINDIR= /usr/mdec
@@ -15,6 +15,7 @@ RELOC2!= perl -e 'printf "0x%x", ${RELOC_TEST} + 0x40000'
CFLAGS+= -fno-stack-protector
DEFS= -DSTANDALONE -DRELOC=${RELOC} -DSUN4 -DSUN4C -DSUN_BOOTPARAMS
+DEFS+= -Derrno=errno
### Figure out what to use for libkern
LIBKERNDIR= ${.CURDIR}/../libkern
diff --git a/sys/arch/sparc/stand/libsa/Makefile b/sys/arch/sparc/stand/libsa/Makefile
index 0002c987e1a..cc9a3519bd3 100644
--- a/sys/arch/sparc/stand/libsa/Makefile
+++ b/sys/arch/sparc/stand/libsa/Makefile
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.2 2003/06/01 17:00:39 deraadt Exp $
+# $OpenBSD: Makefile,v 1.3 2004/07/13 21:03:39 marc Exp $
LIB= sa
.PATH: ${.CURDIR}/../../../../lib/libsa
-CFLAGS= -O2 -D__INTERNAL_LIBSA_CREAD \
+CFLAGS= -O2 -D__INTERNAL_LIBSA_CREAD -Derrno=errno \
-I${.CURDIR} -I${.CURDIR}/../include -I${.CURDIR}/../.. \
-I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \
-I${.CURDIR}/../../../../lib/libsa
diff --git a/sys/arch/sparc64/stand/Makefile.inc b/sys/arch/sparc64/stand/Makefile.inc
index e31772ea8c8..707faad4c54 100644
--- a/sys/arch/sparc64/stand/Makefile.inc
+++ b/sys/arch/sparc64/stand/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.4 2004/01/10 09:35:42 pvalchev Exp $
+# $OpenBSD: Makefile.inc,v 1.5 2004/07/13 21:03:38 marc Exp $
# $NetBSD: Makefile.inc,v 1.7 2000/08/20 14:57:16 mrg Exp $
.ifndef __INCLUDED_STAND_MAKEFILE_INC
@@ -14,6 +14,7 @@ STANDALONE?= -D_STANDALONE
.if ${MACHINE} == "sparc64"
CPPFLAGS+= ${STANDALONE} -DSUN4U
CPPFLAGS+= -I.
+CPPFLAGS+= -Derrno=errno
CFLAGS+= -fno-stack-protector
CFLAGS+= -msoft-float