spack/var/spack/repos/builtin/packages/bowtie2/bowtie2-2.3.1.patch
George Hartzell 529a2ae5fa Depend on readline, remove hardcoded -ltermcap (#4042)
* depend on readline, remove hardcoded -ltermcap

Bowtie should use Spack's readline and not explicitly depend on the
system termcap (which, on CentOS, leads to linking against the
system's tinfo library).

* Add depends_on('zlib')

* Add conflict with gcc@6:

Build seems to have trouble with 6's migration to -std=gnu++14.
2017-04-28 14:47:43 -05:00

18 lines
412 B
Diff

--- Makefile.orig 2017-03-24 20:43:00.304532976 -0700
+++ Makefile 2017-03-24 20:48:59.644532037 -0700
@@ -26,10 +26,10 @@
INC =
-LIBS = -lreadline -ltermcap -lz
+LIBS = -lreadline -lz
-GCC_PREFIX = $(shell dirname `which gcc`)
+GCC_PREFIX =
GCC_SUFFIX =
-CC ?= $(GCC_PREFIX)/gcc$(GCC_SUFFIX)
-CPP ?= $(GCC_PREFIX)/g++$(GCC_SUFFIX)
+CC = cc
+CPP = c++
CXX ?= $(CPP)
HEADERS = $(wildcard *.h)
BOWTIE_MM = 1