Adjust makefile to make it easier to link all binaries statically.

Patch from Matias A. Fonzo and Dragora.
This commit is contained in:
Petter Reinholdtsen 2014-01-28 22:11:34 +00:00
parent 5421d713ae
commit 8478327498
2 changed files with 14 additions and 1 deletions

View File

@ -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 <pere@hungry.com> Sun Apr 11 11:28:55 CEST 2010

View File

@ -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