summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-02-27 16:21:31 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-02-27 16:21:31 +0000
commit0f63faff954906666bddf13af93b85cb09a910cc (patch)
tree4b8dab692b4080c667f2b95467493d19191268f8
parent74f221919dd8f5bfe860ec00fc4265f2fead240a (diff)
Build hppa kernels with -ffreestanding.
-rw-r--r--sys/arch/hppa/conf/Makefile.hppa8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/hppa/conf/Makefile.hppa b/sys/arch/hppa/conf/Makefile.hppa
index d48f19359ae..6c87c245fa6 100644
--- a/sys/arch/hppa/conf/Makefile.hppa
+++ b/sys/arch/hppa/conf/Makefile.hppa
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hppa,v 1.88 2016/11/29 09:08:34 mpi Exp $
+# $OpenBSD: Makefile.hppa,v 1.89 2017/02/27 16:21:30 kettenis Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -24,13 +24,11 @@ _archdir?= $S/arch/${_arch}
INCLUDES= -nostdinc -I$S -I${.OBJDIR} -I$S/arch
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \
- -Wno-main -Wno-uninitialized -Wno-pointer-sign \
+ -Wno-uninitialized -Wno-pointer-sign \
-Wframe-larger-than=2047
CMACHFLAGS= -mfast-indirect-calls -mportable-runtime -mno-space-regs
-CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \
- -fno-builtin-vsnprintf -fno-builtin-log \
- -fno-builtin-log2 -fno-builtin-malloc ${NOPIE_FLAGS}
+CMACHFLAGS+= -ffreestanding ${NOPIE_FLAGS}
CMACHFLAGS+= -fno-stack-protector
DEBUG?= -g