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

aarch64: use clang to cross-compile htop #1502

Merged
merged 1 commit into from
Aug 7, 2024
Merged
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
17 changes: 16 additions & 1 deletion build/htop/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,25 @@ SUMMARY="htop"
DESC="An interactive process viewer for Unix"

set_arch 64
test_relver '>=' 151041 && set_clangver
set_clangver

XFORM_ARGS="-DPREFIX=${PREFIX#/}"

# TODO: if we are going to use clang as a cross-compiler we should
# add support to the framework; this is just a hacky workaround
# to have at least one consumer of clang for cross-compiling
pre_configure() {
typeset arch=$1

! cross_arch $arch && return

set_clangver

PATH=$CROSSTOOLS/$arch/bin:$PATH
CC+=" --target=${TRIPLETS[$arch]}"
CFLAGS[$arch]+=" $CTF_CFLAGS"
}

init
download_source $PROG $PROG $VER
patch_source
Expand Down
Loading