Skip to content

Commit 62f74bc

Browse files
committed
aarch64: build znc with clang++
1 parent 8dae78e commit 62f74bc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build/znc/build.sh

+10
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,20 @@ pre_build() {
6868
done
6969
}
7070

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

7477
LDFLAGS[$arch]+=" -Wl,-R$OPREFIX/${LIBDIRS[$arch]}"
78+
79+
! cross_arch $arch && return
80+
81+
set_clangver
82+
83+
PATH=$CROSSTOOLS/$arch/bin:$PATH
84+
CXX+=" --target=${TRIPLETS[$arch]}"
7585
}
7686

7787
post_install() {

0 commit comments

Comments
 (0)