mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Only add -s flag to the linker if debug=no
This commit is contained in:
+14
-9
@@ -34,15 +34,6 @@ ifeq ($(KERNEL),Linux)
|
|||||||
OS = $(shell uname -o)
|
OS = $(shell uname -o)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
### BLAS libraries
|
|
||||||
ifeq ($(KERNEL),Linux)
|
|
||||||
BLASCXXFLAGS =
|
|
||||||
BLASLDFLAGS = -lopenblas
|
|
||||||
else
|
|
||||||
BLASCXXFLAGS = -I/mingw64/include/OpenBLAS
|
|
||||||
BLASLDFLAGS = -lopenblas -Wl,-s -static
|
|
||||||
endif
|
|
||||||
|
|
||||||
### Installation dir definitions
|
### Installation dir definitions
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
BINDIR = $(PREFIX)/bin
|
BINDIR = $(PREFIX)/bin
|
||||||
@@ -141,6 +132,20 @@ neon = no
|
|||||||
ARCH = x86-64-modern
|
ARCH = x86-64-modern
|
||||||
STRIP = strip
|
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
|
### 2.2 Architecture specific
|
||||||
|
|
||||||
ifeq ($(findstring x86,$(ARCH)),x86)
|
ifeq ($(findstring x86,$(ARCH)),x86)
|
||||||
|
|||||||
Reference in New Issue
Block a user