summaryrefslogtreecommitdiffstats
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2010-04-27 16:50:14 +0000
committerjsg <jsg@openbsd.org>2010-04-27 16:50:14 +0000
commit5a145dd305a00d52d7550fe0168d613723251a88 (patch)
tree207ca0ff68f637ffab9569323860dc9e000509e4 /sys/arch/macppc
parentUse the form ${_archdir}/${_arch} to reach a few more places, unifying the (diff)
downloadwireguard-openbsd-5a145dd305a00d52d7550fe0168d613723251a88.tar.xz
wireguard-openbsd-5a145dd305a00d52d7550fe0168d613723251a88.zip
Disable builtin malloc and log2 on gcc3 arches, a no-op for gcc3
but required for gcc4. ok kettenis@ deraadt@ marco@, log2 suggested by robert@
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/conf/Makefile.macppc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/macppc/conf/Makefile.macppc b/sys/arch/macppc/conf/Makefile.macppc
index fcad7cbe8c0..959c6553bbf 100644
--- a/sys/arch/macppc/conf/Makefile.macppc
+++ b/sys/arch/macppc/conf/Makefile.macppc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.macppc,v 1.43 2010/04/27 06:46:26 deraadt Exp $
+# $OpenBSD: Makefile.macppc,v 1.44 2010/04/27 16:50:15 jsg Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -30,7 +30,8 @@ CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL \
CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wno-uninitialized -Wno-format -Wno-main \
-Wstack-larger-than-2047 -Wvariable-decl
-CMACHFLAGS= -msoft-float -Wa,-many -fno-builtin-printf -fno-builtin-log
+CMACHFLAGS= -msoft-float -Wa,-many -fno-builtin-printf -fno-builtin-log \
+ -fno-builtin-log2 -fno-builtin-malloc
.if ${IDENT:M-DNO_PROPOLICE}
CMACHFLAGS+= -fno-stack-protector
.endif