Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix building for linux aarch64 (armv8 64-bit) #80

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,5 @@ src/qt/komodo-qt
src/qt/*_7776
src/*_7776
*_7776
releases/
releases/
depends/aarch64-linux-gnu
1 change: 1 addition & 0 deletions depends/packages/bdb.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ $(package)_cxxflags+=-std=c++11
ifneq ($(build_os),darwin)
$(package)_config_opts_darwin=--disable-atomicsupport
endif
$(package)_config_opts_aarch64=--disable-atomicsupport
endef

define $(package)_preprocess_cmds
Expand Down
1 change: 1 addition & 0 deletions depends/packages/boost.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ $(package)_config_opts_mingw32=binary-format=pe target-os=windows threadapi=win3
$(package)_config_opts_x86_64_mingw32=address-model=64
$(package)_config_opts_i686_mingw32=address-model=32
$(package)_config_opts_i686_linux=address-model=32 architecture=x86
$(package)_config_opts_aarch64=address-model=64
$(package)_toolset_$(host_os)=gcc
$(package)_archiver_$(host_os)=$($(package)_ar)
$(package)_toolset_darwin=gcc
Expand Down
1 change: 1 addition & 0 deletions depends/packages/libcurl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $(package)_config_opts=--with-openssl --disable-shared --enable-static --prefix=
$(package)_config_opts_linux=--without-libidn2 --host=x86_64-unknown-linux-gnu
$(package)_config_opts_mingw32=--enable-mingw --host=x86_64-w64-mingw32 --disable-ldap
$(package)_config_opts_darwin=--without-libidn2 --without-zstd
$(package)_config_opts_aarch64_linux=--host=aarch64-linux-gnu --without-brotli
$(package)_cflags_darwin=-mmacosx-version-min=$(OSX_MIN_VERSION)
$(package)_conf_tool=./configure

Expand Down
17 changes: 4 additions & 13 deletions depends/packages/librustzcash.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,7 @@ $(package)_dependencies=rust $(rust_crates)
$(package)_patches=cargo.config 0001-Start-using-cargo-clippy-for-CI.patch remove-dev-dependencies.diff

$(package)_rust_target=$(if $(rust_rust_target_$(canonical_host)),$(rust_rust_target_$(canonical_host)),$(canonical_host))

ifeq ($(host_os),mingw32)
$(package)_library_file=target/x86_64-pc-windows-gnu/release/librustzcash.a
else ifneq ($(canonical_host),$(build))
ifeq ($(build_os)$(host_os),darwindarwin)
$(package)_library_file=target/release/librustzcash.a
else
$(package)_library_file=target/$($(package)_rust_target)/release/librustzcash.a
endif
else
$(package)_library_file=target/release/librustzcash.a
endif

define $(package)_set_vars
$(package)_build_opts=--frozen --release
Expand All @@ -43,8 +32,10 @@ define $(package)_build_cmds
endef

define $(package)_stage_cmds
mkdir $($(package)_staging_dir)$(host_prefix)/lib/ && \
mkdir $($(package)_staging_dir)$(host_prefix)/include/ && \
[ -f target/$($(package)_rust_target)/release/librustzcash.a ] && \
cp target/$($(package)_rust_target)/release/librustzcash.a $($(package)_library_file) || true && \
mkdir -p $($(package)_staging_dir)$(host_prefix)/lib/ && \
mkdir -p $($(package)_staging_dir)$(host_prefix)/include/ && \
cp $($(package)_library_file) $($(package)_staging_dir)$(host_prefix)/lib/ && \
cp librustzcash/include/librustzcash.h $($(package)_staging_dir)$(host_prefix)/include/
endef
Loading