diff options
Diffstat (limited to 'sys-block/vblade/files/vblade-25-makefile.patch')
-rw-r--r-- | sys-block/vblade/files/vblade-25-makefile.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys-block/vblade/files/vblade-25-makefile.patch b/sys-block/vblade/files/vblade-25-makefile.patch new file mode 100644 index 000000000000..072c963b1c39 --- /dev/null +++ b/sys-block/vblade/files/vblade-25-makefile.patch @@ -0,0 +1,36 @@ +--- a/makefile ++++ b/makefile +@@ -9,29 +9,23 @@ sharedir = ${prefix}/share + mandir = ${sharedir}/man + + O=aoe.o bpf.o ${PLATFORM}.o ata.o dat.o +-CFLAGS += -Wall -g -O2 -fno-common +-CC = gcc ++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 +- ${CC} ${CFLAGS} -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"; \ + |