diff options
Diffstat (limited to 'main/open-iscsi/ldflags.patch')
-rw-r--r-- | main/open-iscsi/ldflags.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/open-iscsi/ldflags.patch b/main/open-iscsi/ldflags.patch new file mode 100644 index 0000000000..b46771c2a1 --- /dev/null +++ b/main/open-iscsi/ldflags.patch @@ -0,0 +1,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 + |