projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e725a9b
)
uml: allow LFLAGS on command line
author
Jeff Dike
<jdike@addtoit.com>
Tue, 5 Feb 2008 06:30:45 +0000
(22:30 -0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:26 +0000
(09:44 -0800)
Allow LFLAGS to be given to make and have the expected effect.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/Makefile
patch
|
blob
|
history
diff --git
a/arch/um/Makefile
b/arch/um/Makefile
index
ba6813a
..
e44fd6a
100644
(file)
--- a/
arch/um/Makefile
+++ b/
arch/um/Makefile
@@
-130,7
+130,9
@@
CPPFLAGS_vmlinux.lds = -U$(SUBARCH) -DSTART=$(START) -DELF_ARCH=$(ELF_ARCH) \
# The wrappers will select whether using "malloc" or the kernel allocator.
LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc
-CFLAGS_vmlinux := $(LINK-y) $(LINK_WRAPS)
+LD_FLAGS_CMDLINE = $(foreach opt,$(LFLAGS),-Wl,$(opt))
+
+CFLAGS_vmlinux := $(LINK-y) $(LINK_WRAPS) $(LD_FLAGS_CMDLINE)
define cmd_vmlinux__
$(CC) $(CFLAGS_vmlinux) -o $@ \
-Wl,-T,$(vmlinux-lds) $(vmlinux-init) \