From e638d66bbe2b155a7498ca717e44942726125503 Mon Sep 17 00:00:00 2001 From: Tomasz Sobczyk Date: Mon, 7 Sep 2020 19:54:25 +0200 Subject: [PATCH] Only add -s flag to the linker if debug=no --- src/Makefile | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/Makefile b/src/Makefile index a8d7a13c..db8213c0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)