Only add -s flag to the linker if debug=no

This commit is contained in:
Tomasz Sobczyk
2020-09-07 19:54:25 +02:00
committed by nodchip
parent 4cc98d80f8
commit e638d66bbe

View File

@@ -34,15 +34,6 @@ ifeq ($(KERNEL),Linux)
OS = $(shell uname -o)
endif
### BLAS libraries
ifeq ($(KERNEL),Linux)
BLASCXXFLAGS =
BLASLDFLAGS = -lopenblas
else
BLASCXXFLAGS = -I/mingw64/include/OpenBLAS
BLASLDFLAGS = -lopenblas -Wl,-s -static
endif
### Installation dir definitions
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
@@ -141,6 +132,20 @@ neon = no
ARCH = x86-64-modern
STRIP = strip
### BLAS libraries
ifeq ($(KERNEL),Linux)
BLASCXXFLAGS =
BLASLDFLAGS = -lopenblas
else
BLASCXXFLAGS = -I/mingw64/include/OpenBLAS
ifeq ($(debug),yes)
BLASLDFLAGS = -lopenblas -Wl,-static
else
BLASLDFLAGS = -lopenblas -Wl,-s -static
endif
endif
### 2.2 Architecture specific
ifeq ($(findstring x86,$(ARCH)),x86)