| 1 |
Author: Michael R. Crusoe <[email protected]> |
| 2 |
Description: Handle -m64 and -msse2 flags better |
| 3 |
Forwarded: not-needed |
| 4 |
Index: bowtie2/Makefile |
| 5 |
=================================================================== |
| 6 |
--- bowtie2.orig/Makefile |
| 7 |
+++ bowtie2/Makefile |
| 8 |
@@ -77,10 +77,9 @@ endif |
| 9 |
# do we have a 256-bit variant of the executable? |
| 10 |
ENABLE_V256 := 0 |
| 11 |
|
| 12 |
-BITS := 32 |
| 13 |
-ARCH ?= $(shell uname -m) |
| 14 |
-ifneq (,$(findstring $(ARCH), x86_64 amd64)) |
| 15 |
- BITS := 64 |
| 16 |
+CXXFLAGS += -fopenmp-simd |
| 17 |
+CPPFLAGS += -Ithird_party |
| 18 |
+ifneq (,$(findstring $(shell dpkg-architecture -q DEB_TARGET_ARCH), x86_64 amd64)) |
| 19 |
SSE_FLAG := -msse2 |
| 20 |
POPCNT_CAPABILITY ?= 1 |
| 21 |
ifneq (0, $(SSE_AVX2)) |
| 22 |
@@ -89,11 +88,8 @@ ifneq (,$(findstring $(ARCH), x86_64 amd |
| 23 |
# tell 128-bit version to check for v256 capability and use it, if found |
| 24 |
SSE_FLAG += -DENABLE_x86_64_v3 |
| 25 |
endif |
| 26 |
-else ifneq (,$(findstring $(ARCH), aarch64 arm64 s390x powerpc64 powerpc64le ppc64 ppc64le)) |
| 27 |
- BITS := 64 |
| 28 |
+else |
| 29 |
SSE_FLAG := |
| 30 |
- CXXFLAGS += -fopenmp-simd |
| 31 |
- CPPFLAGS += -Ithird_party |
| 32 |
POPCNT_CAPABILITY ?= 0 |
| 33 |
endif |
| 34 |
|