* [PATCH 2/5] UML - Allow LFLAGS on command line
@ 2007-11-07 18:36 Jeff Dike
0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2007-11-07 18:36 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML, uml-devel, Sam Ravnborg
Allow LFLAGS to be given to make and have the expected effect.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
---
arch/um/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: linux-2.6/arch/um/Makefile
===================================================================
--- linux-2.6.orig/arch/um/Makefile 2007-11-06 10:46:55.000000000 -0500
+++ linux-2.6/arch/um/Makefile 2007-11-07 12:44:29.000000000 -0500
@@ -130,7 +130,9 @@ CPPFLAGS_vmlinux.lds = -U$(SUBARCH) -DST
# 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) \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-07 18:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07 18:36 [PATCH 2/5] UML - Allow LFLAGS on command line Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox