aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/rsh-redone_link_order_file.patch
blob: c12ee9b4652d007705f4413fbd91a4c5c633e7cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
This fixes a build issue caused by linking order.

Upstream-Status: Inappropriate
Most distos have there own verison of this fix. This was derived by
* Fix link order to list libraries after the objects that require them
(LP: #771080).

-- Colin Watson <cjwatson@ubuntu.com>  Tue, 13 Sep 2011 10:07:08 +0100


signed-off-by: Armin Kuster <akuster808@gmail.com>

Index: netkit-rsh-0.17/rsh/Makefile
===================================================================
--- netkit-rsh-0.17.orig/rsh/Makefile
+++ netkit-rsh-0.17/rsh/Makefile
@@ -6,7 +6,7 @@ include ../MRULES
 OBJS = rsh.o
 
 rsh: $(OBJS)
-	$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
+	$(CC) $^ -o $@ $(LDFLAGS) $(LIBS)
 
 install: rsh
 	install -o root -m$(SUIDMODE) rsh $(INSTALLROOT)$(BINDIR)
Index: netkit-rsh-0.17/rshd/Makefile
===================================================================
--- netkit-rsh-0.17.orig/rshd/Makefile
+++ netkit-rsh-0.17/rshd/Makefile
@@ -11,7 +11,7 @@ LIBS += -ldl -lpam
 endif
 
 rshd: $(OBJS)
-	$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
+	$(CC) $^ -o $@ $(LDFLAGS) $(LIBS)
 
 install: rshd
 	install -m$(DAEMONMODE) rshd $(INSTALLROOT)$(SBINDIR)/in.rshd
Index: netkit-rsh-0.17/rlogin/Makefile
===================================================================
--- netkit-rsh-0.17.orig/rlogin/Makefile
+++ netkit-rsh-0.17/rlogin/Makefile
@@ -7,7 +7,7 @@ PROG=rlogin
 OBJS=rlogin.o
 
 $(PROG): $(OBJS)
-	$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
+	$(CC) $^ -o $@ $(LDFLAGS) $(LIBS)
 
 install: $(PROG)
 	install -o root -m$(SUIDMODE) $(PROG) $(INSTALLROOT)$(BINDIR)
Index: netkit-rsh-0.17/rlogind/Makefile
===================================================================
--- netkit-rsh-0.17.orig/rlogind/Makefile
+++ netkit-rsh-0.17/rlogind/Makefile
@@ -13,7 +13,7 @@ LIBS += -ldl -lpam -lpam_misc
 endif
 
 rlogind: $(OBJS)
-	$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
+	$(CC) $^ -o $@ $(LDFLAGS) $(LIBS)
 
 rlogind.o: pathnames.h logwtmp.h rlogind.h ../version.h
 logwtmp.o: logwtmp.h
Index: netkit-rsh-0.17/rexecd/Makefile
===================================================================
--- netkit-rsh-0.17.orig/rexecd/Makefile
+++ netkit-rsh-0.17/rexecd/Makefile
@@ -24,7 +24,7 @@ endif
 CFLAGS += -DRESTRICT_FTP=1
 
 rexecd: rexecd.o
-	$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
+	$(CC) $^ -o $@ $(LDFLAGS) $(LIBS)
 
 install: rexecd
 	install -m$(DAEMONMODE) rexecd $(INSTALLROOT)$(SBINDIR)/in.rexecd