aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-iscsi/ldflags.patch
blob: b46771c2a17f773b859573b971646344ac087976 (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
diff --git a/usr/Makefile b/usr/Makefile
index c1866b6..b73e792 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -54,14 +54,14 @@ all: $(PROGRAMS)

 iscsid: $(ISCSI_LIB_SRCS) $(INITIATOR_SRCS) $(DISCOVERY_SRCS) \
 	iscsid.o session_mgmt.o discoveryd.o mntcheck.o
-	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@  -lisns -lcrypto -lrt -lmount
+	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@  -lisns -lcrypto -lrt -lmount $(LDFLAGS)

 iscsiadm: $(ISCSI_LIB_SRCS) $(DISCOVERY_SRCS) iscsiadm.o session_mgmt.o mntcheck.o
-	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -lisns -lcrypto -lmount
+	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -lisns -lcrypto -lmount $(LDFLAGS)

 iscsistart: $(ISCSI_LIB_SRCS) $(INITIATOR_SRCS) $(FW_BOOT_SRCS) \
 		iscsistart.o statics.o
-	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -lrt
+	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -lrt $(LDFLAGS)
 clean:
 	rm -f *.o $(PROGRAMS) .depend $(LIBSYS)

diff --git a/utils/Makefile b/utils/Makefile
index f65f1e7..472a1b4 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -7,7 +7,7 @@ PROGRAMS = iscsi-iname
 all: $(PROGRAMS)

 iscsi-iname: md5.o iscsi-iname.o
-	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(DBM_LIB) -o $@
+	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(DBM_LIB) -o $@ $(LDFLAGS)

 clean:
 	rm -f *.o $(PROGRAMS) .depend
--
2.13.0