From: Antoine Verheijen Date: Mon, 24 Jan 2011 07:38:03 +0000 (-0700) Subject: OpenBSD: Eliminate complaint about built-in malloc. X-Git-Tag: upstream/1.8.0_pre1^2~4238 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=42c5806599c1df65ee8ec1272f691df30ea44d4c;p=packages%2Fo%2Fopenafs.git 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. Change-Id: I7e28e6275ca90f73a8d1f65d82f1ccf2cc3a0ead Reviewed-on: http://gerrit.openafs.org/3751 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/libafs/MakefileProto.OBSD.in b/src/libafs/MakefileProto.OBSD.in index ba9057c63..47daf3347 100644 --- a/src/libafs/MakefileProto.OBSD.in +++ b/src/libafs/MakefileProto.OBSD.in @@ -16,7 +16,7 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ # System specific build commands and flags KSRC = @BSD_KERNEL_PATH@ -KFLAGS= -Wall -march=i486 -fno-builtin-printf -fno-builtin-log -nostdinc +KFLAGS= -Wall -march=i486 -fno-builtin-printf -fno-builtin-log -fno-builtin-malloc -nostdinc KFLAGS+= -fno-stack-protector