summaryrefslogtreecommitdiff
path: root/kexec/Makefile
diff options
context:
space:
mode:
authorBernhard Walle <bwalle@suse.de>2008-08-26 10:16:49 +0200
committerSimon Horman <horms@verge.net.au>2008-08-27 12:12:40 +1000
commit6abf3ba5dc63ef670010927d5572d38c3ce2a587 (patch)
treea9db99a787a5b55cc76a94ab1fb998a163be3e39 /kexec/Makefile
parent8108aeeef14a2ab40756e90c980ac09687eff007 (diff)
Move $(LIBS) on the end
To make static compilation work with LDFLAGS=-static ./configure make we have to move $(LIBS) on the end of the compiler line. Static compilation has been requested by "Yinghai Lu" <yhlu.kernel@gmail.com>. Although I don't see the practical benefit in most cases, I don't think we should not support it. Since kexec does not use name resolution functions of libc, it's valid to use static linking. Tested on x86_64-suse-linux. Signed-off-by: Bernhard Walle <bwalle@suse.de> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/Makefile')
-rw-r--r--kexec/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/kexec/Makefile b/kexec/Makefile
index 6147904..99949c4 100644
--- a/kexec/Makefile
+++ b/kexec/Makefile
@@ -67,10 +67,9 @@ KEXEC_MANPAGE = $(MANDIR)/man8/kexec.8
-include $(KEXEC_DEPS)
-$(KEXEC): LDFLAGS+=$(LIBS)
$(KEXEC): $(KEXEC_OBJS) $(UTIL_LIB)
@$(MKDIR) -p $(@D)
- $(LINK.o) -o $@ $^
+ $(LINK.o) -o $@ $^ $(LIBS)
$(KEXEC): CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/include