From 1d147597b9e3a575bf553db2b135b89a8ec6197a Mon Sep 17 00:00:00 2001 From: Antoine Verheijen Date: Mon, 24 Jan 2011 00:38:03 -0700 Subject: [PATCH] OpenBSD: Eliminate complaint about built-in malloc. With OpenBSD 4.8, OpenBSD now uses gcc 4. With its new defaults, the OpenAFS compile of the kernel module now complains incessantly about the conflict between the built-in malloc versus the kernel version (which has extra parameters). Therefore, set -fno-builtin-malloc when compiling the kernel module to remove the noise since the differences can't be reconciled otherwise. Reviewed-on: http://gerrit.openafs.org/3751 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 42c5806599c1df65ee8ec1272f691df30ea44d4c) Change-Id: Ifc17880d41f84d621ef33ba3b4ac8be8162f64ad Reviewed-on: http://gerrit.openafs.org/4359 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/libafs/MakefileProto.OBSD.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libafs/MakefileProto.OBSD.in b/src/libafs/MakefileProto.OBSD.in index d2e70f95b2..770cdb8651 100644 --- a/src/libafs/MakefileProto.OBSD.in +++ b/src/libafs/MakefileProto.OBSD.in @@ -12,7 +12,7 @@ include @TOP_OBJDIR@/src/config/Makefile.config # System specific build commands and flags KSRC = @BSD_KERNEL_PATH@ -KFLAGS= -Wall -nostdinc +KFLAGS= -Wall -fno-builtin-malloc -nostdinc KFLAGS+= -fno-stack-protector