diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2022-04-24 17:32:42 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2022-04-24 17:32:42 +0300 |
commit | 03d0f7cca15dfd212a1631e009b5070ad1811ca0 (patch) | |
tree | 0f1478b113615d8f3f6e9f799090d3b6ee74a40b | |
parent | 9cf812f60104042b46f58faa2cce2d549f2cdb68 (diff) | |
download | guix-03d0f7cca15dfd212a1631e009b5070ad1811ca0.tar.gz guix-03d0f7cca15dfd212a1631e009b5070ad1811ca0.zip |
gnu: stockfish: Add support for more architectures.
* gnu/packages/games.scm (stockfish)[arguments]: Add ARCH matches for
more architectures. Add EXTRALDFLAGS for powerpc-linux. Add phase to
remove '-m' compiler flags.
-rw-r--r-- | gnu/packages/games.scm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 7aad3c00d0..83c75e8dcf 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -11986,12 +11986,18 @@ etc. You can also play games on FICS or against an engine.") "build" (string-append "PREFIX=" (assoc-ref %outputs "out")) + ,@(if (target-ppc32?) + `("EXTRALDFLAGS=-latomic") + `()) (string-append "ARCH=" ,(match (%current-system) ("x86_64-linux" "x86-64") ("i686-linux" "x86-32") ("aarch64-linux" "armv8") ("armhf-linux" "armv7") + ("powerpc-linux" "ppc-32") + ("powerpc64le-linux" "ppc-64") + ("riscv64-linux" "general-64") ("mips64el-linux" "general-64") (_ "general-32")))) #:phases (modify-phases %standard-phases @@ -12002,7 +12008,12 @@ etc. You can also play games on FICS or against an engine.") (lambda* (#:key inputs #:allow-other-keys) (copy-file (assoc-ref inputs "neural-network") (format #f "src/nn-~a.nnue" - ,neural-network-revision))))))) + ,neural-network-revision)))) + ;; Guix doesn't use a multiarch gcc. + (add-after 'unpack 'remove-m-flag + (lambda _ + (substitute* "src/Makefile" + (("-m\\$\\(bits\\)") ""))))))) (synopsis "Strong chess engine") (description "Stockfish is a very strong chess engine. It is much stronger than the |