summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-block/vblade/files/vblade-24-makefile.patch')
-rw-r--r--sys-block/vblade/files/vblade-24-makefile.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/sys-block/vblade/files/vblade-24-makefile.patch b/sys-block/vblade/files/vblade-24-makefile.patch
new file mode 100644
index 000000000000..ed5efb2c2e23
--- /dev/null
+++ b/sys-block/vblade/files/vblade-24-makefile.patch
@@ -0,0 +1,35 @@
+--- a/makefile
++++ b/makefile
+@@ -8,27 +8,22 @@
+ sharedir = ${prefix}/share
+ mandir = ${sharedir}/man
+
+-O=aoe.o bpf.o ${PLATFORM}.o ata.o
+-CFLAGS += -Wall -g -O2
+-CC = gcc
++O=aoe.o bpf.o ${PLATFORM}.o ata.o dat.o
++CFLAGS += -Wall
+
+ vblade: $O
+- ${CC} -o vblade $O
++ ${CC} ${LDFLAGS} -o vblade $O ${LIBS}
+
+ aoe.o : aoe.c config.h dat.h fns.h makefile
+- ${CC} ${CFLAGS} -c $<
+
+ ${PLATFORM}.o : ${PLATFORM}.c config.h dat.h fns.h makefile
+- ${CC} ${CFLAGS} -c $<
+
+ ata.o : ata.c config.h dat.h fns.h makefile
+- ${CC} ${CFLAGS} -c $<
+
+-bpf.o : bpf.c
+- ${CC} ${CFLAGS} -c $<
++dat.o : dat.c
+
+ config.h : config/config.h.in makefile
+- @if ${CC} ${CFLAGS} config/u64.c > /dev/null 2>&1; then \
++ @if ${CC} ${CFLAGS} ${CPPFLAGS} config/u64.c > /dev/null 2>&1; then \
+ sh -xc "cp config/config.h.in config.h"; \
+ else \
+ sh -xc "sed 's!^//u64 !!' config/config.h.in > config.h"; \