use EasyBuild-provided zlib, don't hardcode gcc/g++ for jellyfish plugin
authors: B. Hajgato (Vrije Universiteit Brussel), Kenneth Hoste (HPC-UGent)
--- trinityrnaseq-Trinity-v2.5.1/trinity-plugins/Makefile.orig	2017-11-22 14:21:14.473780000 +0100
+++ trinityrnaseq-Trinity-v2.5.1/trinity-plugins/Makefile	2017-11-22 14:29:21.276480000 +0100
@@ -20,6 +20,7 @@
 ifeq ($(OS),Darwin)
 	sed -i.bak s/-rdynamic//g samtools-1.3.1/Makefile
 endif
+	sed -e 's/ -lz/ -L\$$\{EBROOTZLIB\}\/lib -lz/' -i samtools-1.3.1/Makefile
 	cd samtools-1.3.1 && $(MAKE)
 	mv samtools-1.3.1/samtools ./BIN/.
 
@@ -30,7 +31,7 @@
 
 jellyfish:
 	tar -zxvf ${JELLYFISH_CODE}.tar.gz && ln -sf ${JELLYFISH_CODE} tmp.jellyfish
-	cd ./tmp.jellyfish/ && ./configure CC=gcc CXX=g++ --enable-static --disable-shared --prefix=`pwd` && $(MAKE) LDFLAGS="-lpthread -all-static" AM_CPPFLAGS="-Wall -Wnon-virtual-dtor -I"`pwd`"/include"
+	cd ./tmp.jellyfish/ && ./configure CC=$(CC) CXX=$(CXX) --enable-static --disable-shared --prefix=`pwd` && $(MAKE) LDFLAGS="-lpthread -all-static" AM_CPPFLAGS="-Wall -Wnon-virtual-dtor -I"`pwd`"/include"
 	mv tmp.jellyfish jellyfish
 
 
