When make kdump object file, the expression of linking kdump ignores LDFLAGS. If someone want to build kdump with static links, it won't product object file with static attributes. So, fix it. Signed-off-by: Haifeng Li <omycle at gmail.com> --- kdump/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdump/Makefile b/kdump/Makefile index 5dfa928..307d59d 100644 --- a/kdump/Makefile +++ b/kdump/Makefile @@ -18,7 +18,7 @@ clean += $(KDUMP_OBJS) $(KDUMP_DEPS) $(KDUMP) $(KDUMP_MANPAGE) $(KDUMP): CC=$(TARGET_CC) $(KDUMP): $(KDUMP_OBJS) @$(MKDIR) -p $(@D) - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $(KDUMP_OBJS) + $(LINK.o) -o $@ $^ $(CFLAGS) $(LIBS) $(KDUMP_MANPAGE): kdump/kdump.8 $(MKDIR) -p $(MANDIR)/man8 -- 1.7.9.5