summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-02-22 03:38:51 +0000
committerMike Frysinger <vapier@gentoo.org>2008-02-22 03:38:51 +0000
commit36d7e715a0ba1b792570f3970e946799c08410cb (patch)
treef6e25044a271ebdac8fdea4b438cbab02b48f841 /sys-block/iscsitarget/files/iscsitarget-0.4.15-build.patch
parentFix broken Manifest. (diff)
downloadhistorical-36d7e715a0ba1b792570f3970e946799c08410cb.tar.gz
historical-36d7e715a0ba1b792570f3970e946799c08410cb.tar.bz2
historical-36d7e715a0ba1b792570f3970e946799c08410cb.zip
Respect user LDFLAGS. Fix building with gcc-3.4/-O0 #180619 by Natanael Copa. Add some kernel updates from upstream #191313.
Package-Manager: portage-2.2_pre2
Diffstat (limited to 'sys-block/iscsitarget/files/iscsitarget-0.4.15-build.patch')
-rw-r--r--sys-block/iscsitarget/files/iscsitarget-0.4.15-build.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys-block/iscsitarget/files/iscsitarget-0.4.15-build.patch b/sys-block/iscsitarget/files/iscsitarget-0.4.15-build.patch
new file mode 100644
index 000000000000..44f830d18e88
--- /dev/null
+++ b/sys-block/iscsitarget/files/iscsitarget-0.4.15-build.patch
@@ -0,0 +1,22 @@
+--- usr/Makefile
++++ usr/Makefile
+@@ -1,15 +1,14 @@
+-CFLAGS += -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include
++CFLAGS ?= -O2 -fno-inline -g
++WARNFLAGS = -Wall -Wstrict-prototypes
++CFLAGS += $(WARNFLAGS) -I../include
+ PROGRAMS = ietd ietadm
+-LIBS = -lcrypto
++LDLIBS = -lcrypto
+
+ all: $(PROGRAMS)
+
+ ietd: ietd.o iscsid.o conn.o session.o target.o message.o ctldev.o log.o chap.o event.o param.o plain.o isns.o
+
+- $(CC) $^ -o $@ $(LIBS)
+-
+ ietadm: ietadm.o param.o
+- $(CC) $^ -o $@
+
+ clean:
+ rm -f *.o $(PROGRAMS)