Skip to content

Commit

Permalink
aarch64: build znc with clang++
Browse files Browse the repository at this point in the history
  • Loading branch information
hadfl committed Dec 29, 2024
1 parent 2eb46f7 commit 385a602
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/znc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,20 @@ pre_build() {
done
}

# 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

LDFLAGS[$arch]+=" -Wl,-R$OPREFIX/${LIBDIRS[$arch]}"

! cross_arch $arch && return

set_clangver

PATH=$CROSSTOOLS/$arch/bin:$PATH
CXX+=" --target=${TRIPLETS[$arch]}"
LDFLAGS[$arch]+=" -L${SYSROOT[$arch]}$OPREFIX/${LIBDIRS[$arch]}"
}

Expand Down

0 comments on commit 385a602

Please sign in to comment.