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

31 lines
639 B
Diff

--- a/src/Makefile 2022-12-04 14:17:15.000000000 +0100
+++ b/src/Makefile 2022-12-05 16:52:13.648959706 +0100
@@ -366,27 +366,5 @@ endif
ifeq ($(COMP),gcc)
comp=gcc
- CXX=g++
CXXFLAGS += -pedantic -Wextra -Wshadow
-
- ifeq ($(arch),$(filter $(arch),armv7 armv8 riscv64))
- ifeq ($(OS),Android)
- CXXFLAGS += -m$(bits)
- LDFLAGS += -m$(bits)
- endif
- ifeq ($(ARCH),riscv64)
- CXXFLAGS += -latomic
- endif
- 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