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

30 lines
590 B
Diff

--- src/Makefile.orig 2020-09-02 21:19:30.000000000 +0700
+++ src/Makefile 2021-01-14 18:51:25.852600109 +0700
@@ -306,26 +306,7 @@
ifeq ($(COMP),gcc)
comp=gcc
- CXX=g++
CXXFLAGS += -pedantic -Wextra -Wshadow
-
- ifeq ($(arch),$(filter $(arch),armv7 armv8))
- ifeq ($(OS),Android)
- CXXFLAGS += -m$(bits)
- LDFLAGS += -m$(bits)
- 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
ifeq ($(COMP),mingw)