diff --git a/doc/Changelog b/doc/Changelog index 8c11523..c1e70a2 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -71,6 +71,8 @@ sysvinit (2.89dsf) UNRELEASED; urgency=low returns an error, fall back to MAXSYMLINKS on platforms that define it. Fixes build on Hurd. Patch from Justus Winter and Debian. + * Adjust makefile to make it easier to link all binaries statically. + Patch from Matias A. Fonzo and Dragora. -- Petter Reinholdtsen Sun Apr 11 11:28:55 CEST 2010 diff --git a/src/Makefile b/src/Makefile index 2189eeb..52caa75 100644 --- a/src/Makefile +++ b/src/Makefile @@ -108,28 +108,39 @@ all: $(BIN) $(SBIN) $(USRBIN) init: LDLIBS += $(INITLIBS) $(STATIC) init: init.o init_utmp.o +halt: LDLIBS += $(STATIC) halt: halt.o ifdown.o hddown.o utmp.o +last: LDLIBS += $(STATIC) last: last.o +mesg: LDLIBS += $(STATIC) mesg: mesg.o +mountpoint: LDLIBS += $(STATIC) mountpoint: mountpoint.o +utmpdump: LDLIBS += $(STATIC) utmpdump: utmpdump.o +runlevel: LDLIBS += $(STATIC) runlevel: runlevel.o sulogin: LDLIBS += $(SULOGINLIBS) $(STATIC) sulogin: sulogin.o consoles.o +wall: LDLIBS += $(STATIC) wall: dowall.o wall.o +shutdown: LDLIBS += $(STATIC) shutdown: dowall.o shutdown.o utmp.o -bootlogd: LDLIBS += -lutil +bootlogd: LDLIBS += -lutil $(STATIC) bootlogd: bootlogd.o +fstab-decode: LDLIBS += $(STATIC) +fstab-decode: fstab-decode.o + sulogin.o: CPPFLAGS += $(SELINUX_DEF) sulogin.o: sulogin.c