ldflags.patch 1.19 KB
Newer Older
1 2 3 4 5 6 7 8 9
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
10
+	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@  -lisns -lrt -lmount $(LDFLAGS)
11 12 13

 iscsiadm: $(ISCSI_LIB_SRCS) $(DISCOVERY_SRCS) iscsiadm.o session_mgmt.o mntcheck.o
-	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -lisns -lcrypto -lmount
14
+	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -lisns -lmount $(LDFLAGS)
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

 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