Hi,
Recently I tried to crossbuild for arm64 on amd64.
I found "TARGET=arm64 make cross-tools" stops when building libfido2.
libfido2 requires libz but this is not built yet at that time.
lib/Makefile needs to tweak like this.
openbsd-current-vm# diff -uNpr Makefile~ Makefile
--- Makefile~ Sun Jan 3 05:04:36 2021
+++ Makefile Thu Nov 11 19:47:42 2021
@@ -2,10 +2,10 @@
# $NetBSD: Makefile,v 1.20.4.1 1996/06/14 17:22:38 cgd Exp $
SUBDIR= csu libagentx libarch libc libcbor libcrypto libcurses \
- libedit libelf libevent libexpat \
+ libedit libelf libevent libexpat libz \
libfido2 libform libfuse libkeynote libkvm libl libm libmenu \
libossaudio libpanel libpcap libradius librthread \
librpcsvc libskey libsndio libssl libtls libusbhid \
- libutil liby libz
+ libutil liby
.include <bsd.subdir.mk>
openbsd-current-vm#
It works good, but I think there is better build order.
--
SASANO Takayoshi (JG1UAA) <[email protected]>