void-packages/srcpkgs/stockfish/patches/makefile.patch

35 lines
752 B
Diff

--- a/src/Makefile 2024-02-24 18:59:34.151734872 +0000
+++ b/src/Makefile 2024-02-24 19:01:49.798743474 +0000
@@ -397,31 +397,7 @@ endif
ifeq ($(COMP),gcc)
comp=gcc
- CXX=g++
CXXFLAGS += -pedantic -Wextra -Wshadow -Wmissing-declarations
-
- ifeq ($(arch),$(filter $(arch),armv7 armv8 riscv64))
- ifeq ($(OS),Android)
- CXXFLAGS += -m$(bits)
- LDFLAGS += -m$(bits)
- endif
- ifeq ($(ARCH),riscv64)
- CXXFLAGS += -latomic
- endif
- else ifeq ($(ARCH),loongarch64)
- CXXFLAGS += -latomic
- else
- CXXFLAGS += -m$(bits)
- LDFLAGS += -m$(bits)
- endif
-
- ifeq ($(arch),$(filter $(arch),armv7))
- LDFLAGS += -latomic
- endif
-
- ifneq ($(KERNEL),Darwin)
- LDFLAGS += -Wl,--no-as-needed
- endif
endif
ifeq ($(target_windows),yes)