diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-06-04 02:51:49 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-05 12:29:17 -0700 |
commit | fec468b0c9e0a75b89514408e3b35b1576b57071 (patch) | |
tree | e4de17cf503194a7e428b96e74d980c48ec050f1 /arch | |
parent | b8719c31a30a4a1054d99fbd51a88c2f6444392a (diff) | |
download | op-kernel-dev-fec468b0c9e0a75b89514408e3b35b1576b57071.zip op-kernel-dev-fec468b0c9e0a75b89514408e3b35b1576b57071.tar.gz |
[PATCH] uml: add -ffreestanding to CFLAGS
From: Jeff Dike <jdike@addtoit.com>
This fixes the undefined reference to strcpy seen when building modules on
i386. Tracked down by Al Viro.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/Makefile-i386 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/um/Makefile-i386 b/arch/um/Makefile-i386 index 7a0e04e..b65ca11 100644 --- a/arch/um/Makefile-i386 +++ b/arch/um/Makefile-i386 @@ -33,5 +33,9 @@ include $(srctree)/arch/i386/Makefile.cpu # prevent gcc from keeping the stack 16 byte aligned. Taken from i386. cflags-y += $(call cc-option,-mpreferred-stack-boundary=2) +# Prevent sprintf in nfsd from being converted to strcpy and resulting in +# an unresolved reference. +cflags-y += -ffreestanding + CFLAGS += $(cflags-y) USER_CFLAGS += $(cflags-y) |