Skip to content

Commit

Permalink
net-p2p/monero-cli: fix build on i386
Browse files Browse the repository at this point in the history
This crypto code is for amd64 only.  Don't attempt to build it on i386.

Approved by:	portmgr (build fix blanket)
  • Loading branch information
clausecker committed Oct 23, 2023
1 parent d3566f3 commit 362ade4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion net-p2p/monero-cli/Makefile
Expand Up @@ -11,7 +11,6 @@ WWW= https://getmonero.org/
LICENSE= BSD3CLAUSE

BROKEN_SSL= libressl
BROKEN_i386= fails to compile: register r15d is only available in 64-bit mode
BROKEN_aarch64= fails to compile: uses unavailable HWCAP_AES and getauxval

LIB_DEPENDS= \
Expand Down
11 changes: 11 additions & 0 deletions net-p2p/monero-cli/files/patch-src_crypto_CMakeLists.txt
@@ -0,0 +1,11 @@
--- src/crypto/CMakeLists.txt.orig 2023-10-23 03:21:28 UTC
+++ src/crypto/CMakeLists.txt
@@ -50,7 +50,7 @@ set(crypto_sources
CryptonightR_JIT.c
tree-hash.c)

-if(ARCH_ID STREQUAL "i386" OR ARCH_ID STREQUAL "x86_64" OR ARCH_ID STREQUAL "x86-64" OR ARCH_ID STREQUAL "amd64")
+if(ARCH_ID STREQUAL "x86_64" OR ARCH_ID STREQUAL "x86-64" OR ARCH_ID STREQUAL "amd64")
list(APPEND crypto_sources CryptonightR_template.S)
endif()

0 comments on commit 362ade4

Please sign in to comment.