HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/biology/stringtie/files/patch-Makefile
--- Makefile.orig	2020-01-26 03:31:12 UTC
+++ Makefile
@@ -20,7 +20,7 @@ ifeq "$(GCCVER8)" "1"
   BASEFLAGS += -Wno-class-memaccess
 endif
 
-LINKER  := $(if $(LINKER),$(LINKER),g++)
+LINKER  := $(if $(LINKER),$(LINKER),$(CXX))
 
 LDFLAGS := $(if $(LDFLAGS),$(LDFLAGS),-g)
 
@@ -151,7 +151,7 @@ rlink.o : rlink.h tablemaker.h $(GDIR)/G
 tmerge.o : rlink.h tmerge.h
 tablemaker.o : tablemaker.h rlink.h
 ${BAM}/libbam.a: 
-	cd ${BAM} && make lib
+	cd ${BAM} && ${MAKE} lib
 stringtie: ${BAM}/libbam.a $(OBJS) stringtie.o
 	${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so, $^} ${LIBS}
 	@echo
@@ -167,6 +167,6 @@ clean:
 	${RM} stringtie${EXE} stringtie.o*  $(OBJS)
 	${RM} core.*
 allclean cleanAll cleanall:
-	cd ${BAM} && make clean
+	cd ${BAM} && ${MAKE} clean
 	${RM} stringtie${EXE} stringtie.o* $(OBJS)
 	${RM} core.*