diff options
-rw-r--r-- | arch/um/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index ba6813a4aa37..e44fd6a58375 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -130,7 +130,9 @@ CPPFLAGS_vmlinux.lds = -U$(SUBARCH) -DSTART=$(START) -DELF_ARCH=$(ELF_ARCH) \ | |||
130 | # The wrappers will select whether using "malloc" or the kernel allocator. | 130 | # The wrappers will select whether using "malloc" or the kernel allocator. |
131 | LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc | 131 | LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc |
132 | 132 | ||
133 | CFLAGS_vmlinux := $(LINK-y) $(LINK_WRAPS) | 133 | LD_FLAGS_CMDLINE = $(foreach opt,$(LFLAGS),-Wl,$(opt)) |
134 | |||
135 | CFLAGS_vmlinux := $(LINK-y) $(LINK_WRAPS) $(LD_FLAGS_CMDLINE) | ||
134 | define cmd_vmlinux__ | 136 | define cmd_vmlinux__ |
135 | $(CC) $(CFLAGS_vmlinux) -o $@ \ | 137 | $(CC) $(CFLAGS_vmlinux) -o $@ \ |
136 | -Wl,-T,$(vmlinux-lds) $(vmlinux-init) \ | 138 | -Wl,-T,$(vmlinux-lds) $(vmlinux-init) \ |