Permalink
Browse files

Honor user-defined LDFLAGS making static libs a possibility

  • Loading branch information...
1 parent 86e5a47 commit 2053a6a2f24dffc783657c9c4b278fc9312dd650 @ch4rr0 ch4rr0 committed Jun 12, 2017
Showing with 7 additions and 2 deletions.
  1. +7 −2 Makefile
View
@@ -11,7 +11,7 @@ INC = $(SEQAN_INC) -I third_party
CPP = g++ -w
CXX = $(CPP)
CC = gcc
-LIBS = -lz
+LIBS = $(LDFLAGS) -lz
HEADERS = $(wildcard *.h)
BOWTIE_MM = 1
BOWTIE_SHARED_MEM = 1
@@ -91,7 +91,12 @@ ifeq (1,$(NO_SPINLOCK))
endif
ifneq (1,$(NO_TBB))
- LIBS += $(PTHREAD_LIB) -ltbb -ltbbmalloc_proxy
+ LIBS += $(PTHREAD_LIB) -ltbb
+ ifeq (1, $(RELEASE_BIN))
+ LIBS += -ltbbmalloc
+ else
+ LIBS += -ltbbmalloc_proxy
+ endif
override EXTRA_FLAGS += -DWITH_TBB
else
LIBS += $(PTHREAD_LIB)

0 comments on commit 2053a6a

Please sign in to comment.