]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
OpenBSD: Eliminate complaint about built-in malloc.
authorAntoine Verheijen <antoine@ualberta.ca>
Mon, 24 Jan 2011 07:38:03 +0000 (00:38 -0700)
committerDerrick Brashear <shadow@dementia.org>
Tue, 8 Feb 2011 14:52:41 +0000 (06:52 -0800)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 42c5806599c1df65ee8ec1272f691df30ea44d4c)

Change-Id: I311d9c642d6272acd229a64a6a72eedf7dd39018
Reviewed-on: http://gerrit.openafs.org/3862
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/libafs/MakefileProto.OBSD.in

index ba9057c6349a7ecb3a4ef18aa77a4910b57bb6ee..47daf33475463ad240593f3f6f10da4fc4151b50 100644 (file)
@@ -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
 <i386_obsd33>
 KFLAGS+= -fno-stack-protector
 <all>