projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8719c3
)
[PATCH] uml: add -ffreestanding to CFLAGS
author
Jeff Dike
<
[email protected]
>
Sun, 4 Jun 2006 09:51:49 +0000
(
02:51
-0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 5 Jun 2006 19:29:17 +0000
(12:29 -0700)
From: Jeff Dike <
[email protected]
>
This fixes the undefined reference to strcpy seen when building modules on
i386. Tracked down by Al Viro.
Signed-off-by: Jeff Dike <
[email protected]
>
Cc: Paolo 'Blaisorblade' Giarrusso <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/um/Makefile-i386
patch
|
blob
|
history
diff --git
a/arch/um/Makefile-i386
b/arch/um/Makefile-i386
index 7a0e04e34bf96f2cb4a89a6be34cfbe8f1e6cf90..b65ca115ef7778553473a157998ada3c54869051 100644
(file)
--- 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)