blob: ab0b9b64bcaea87ad5e46982ac6e9bf7986c5704 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001This fixes a build issue caused by linking order.
2
3Upstream-Status: Inappropriate
4Most distos have there own verison of this fix. This was derived by
5* Fix link order to list libraries after the objects that require them
6(LP: #771080).
7
8-- Colin Watson <cjwatson@ubuntu.com> Tue, 13 Sep 2011 10:07:08 +0100
9
10
Patrick Williamsb9af8752023-01-30 13:28:01 -060011Signed-off-by: Armin Kuster <akuster808@gmail.com>
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012
13Index: netkit-rsh-0.17/rsh/Makefile
14===================================================================
15--- netkit-rsh-0.17.orig/rsh/Makefile
16+++ netkit-rsh-0.17/rsh/Makefile
17@@ -6,7 +6,7 @@ include ../MRULES
18 OBJS = rsh.o
19
20 rsh: $(OBJS)
21- $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
22+ $(CC) $^ -o $@ $(LDFLAGS) $(LIBS)
23
24 install: rsh
25 install -o root -m$(SUIDMODE) rsh $(INSTALLROOT)$(BINDIR)
26Index: netkit-rsh-0.17/rshd/Makefile
27===================================================================
28--- netkit-rsh-0.17.orig/rshd/Makefile
29+++ netkit-rsh-0.17/rshd/Makefile
30@@ -11,7 +11,7 @@ LIBS += -ldl -lpam
31 endif
32
33 rshd: $(OBJS)
34- $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
35+ $(CC) $^ -o $@ $(LDFLAGS) $(LIBS)
36
37 install: rshd
38 install -m$(DAEMONMODE) rshd $(INSTALLROOT)$(SBINDIR)/in.rshd
39Index: netkit-rsh-0.17/rlogin/Makefile
40===================================================================
41--- netkit-rsh-0.17.orig/rlogin/Makefile
42+++ netkit-rsh-0.17/rlogin/Makefile
43@@ -7,7 +7,7 @@ PROG=rlogin
44 OBJS=rlogin.o
45
46 $(PROG): $(OBJS)
47- $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
48+ $(CC) $^ -o $@ $(LDFLAGS) $(LIBS)
49
50 install: $(PROG)
51 install -o root -m$(SUIDMODE) $(PROG) $(INSTALLROOT)$(BINDIR)
52Index: netkit-rsh-0.17/rlogind/Makefile
53===================================================================
54--- netkit-rsh-0.17.orig/rlogind/Makefile
55+++ netkit-rsh-0.17/rlogind/Makefile
56@@ -13,7 +13,7 @@ LIBS += -ldl -lpam -lpam_misc
57 endif
58
59 rlogind: $(OBJS)
60- $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
61+ $(CC) $^ -o $@ $(LDFLAGS) $(LIBS)
62
63 rlogind.o: pathnames.h logwtmp.h rlogind.h ../version.h
64 logwtmp.o: logwtmp.h
65Index: netkit-rsh-0.17/rexecd/Makefile
66===================================================================
67--- netkit-rsh-0.17.orig/rexecd/Makefile
68+++ netkit-rsh-0.17/rexecd/Makefile
69@@ -24,7 +24,7 @@ endif
70 CFLAGS += -DRESTRICT_FTP=1
71
72 rexecd: rexecd.o
73- $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
74+ $(CC) $^ -o $@ $(LDFLAGS) $(LIBS)
75
76 install: rexecd
77 install -m$(DAEMONMODE) rexecd $(INSTALLROOT)$(SBINDIR)/in.rexecd