summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-biology/bwa/files/bwa-0.7.13-Makefile.patch')
-rw-r--r--sci-biology/bwa/files/bwa-0.7.13-Makefile.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sci-biology/bwa/files/bwa-0.7.13-Makefile.patch b/sci-biology/bwa/files/bwa-0.7.13-Makefile.patch
new file mode 100644
index 00000000000..39b437a0289
--- /dev/null
+++ b/sci-biology/bwa/files/bwa-0.7.13-Makefile.patch
@@ -0,0 +1,27 @@
+--- bwa-0.7.13/Makefile
++++ bwa-0.7.13/Makefile
+@@ -1,8 +1,8 @@
+-CC= gcc
++CC?= gcc
+ #CC= clang --analyze
+-CFLAGS= -g -Wall -Wno-unused-function -O2
++CFLAGS?= -g -Wall -Wno-unused-function -O2
+ WRAP_MALLOC=-DUSE_MALLOC_WRAPPERS
+-AR= ar
++AR?= ar
+ DFLAGS= -DHAVE_PTHREAD $(WRAP_MALLOC)
+ LOBJS= utils.o kthread.o kstring.o ksw.o bwt.o bntseq.o bwa.o bwamem.o bwamem_pair.o bwamem_extra.o malloc_wrap.o
+ AOBJS= QSufSort.o bwt_gen.o bwashm.o bwase.o bwaseqio.o bwtgap.o bwtaln.o bamlite.o \
+@@ -26,10 +26,10 @@
+ all:$(PROG)
+
+ bwa:libbwa.a $(AOBJS) main.o
+- $(CC) $(CFLAGS) $(DFLAGS) $(AOBJS) main.o -o $@ -L. -lbwa $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(DFLAGS) $(AOBJS) main.o -o $@ -L. -lbwa $(LIBS)
+
+ bwamem-lite:libbwa.a example.o
+- $(CC) $(CFLAGS) $(DFLAGS) example.o -o $@ -L. -lbwa $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(DFLAGS) example.o -o $@ -L. -lbwa $(LIBS)
+
+ libbwa.a:$(LOBJS)
+ $(AR) -csru $@ $(LOBJS)