main/libssh2: cross compile broken
Doesn't detect libssl.so in sysroot. The problem is that specifies an absolute path instead of -lssl to detect its presence. No idea when that broke.
checking for shared library run path origin... done
checking for libssl... no
checking for libgcrypt... no
checking for libmbedcrypto... no
checking for ntdef.h... no
checking for ntstatus.h... no
checking whether SecureZeroMemory is declared... no
checking for libcrypt32... no
checking for libbcrypt... no
configure: ERROR: No openssl crypto library found!
No libgcrypt crypto library found!
No mbedtls crypto library found!
No wincng crypto library found!
Specify --with-crypto=$backend and/or the neccessary library search prefix.
Known crypto backends: auto, openssl, libgcrypt, mbedtls, wincng
checking for libz... yes
checking how to link with libz... -lz
configure: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend
[...]
configure:14736: checking for libssl
configure:14755: aarch64-alpine-linux-musl-gcc -o conftest --sysroot=/home/buildozer/sysroot-aarch64/ -Os -fomit-frame-pointer -g --sysroot=/home/buildozer/sysroot-aarch64/ -Os -fomit-frame-pointer --sysroot=/home/buildozer/sysroot-aarch64/ -Wl,--as-needed conftest.c /usr/lib/libssl.so /usr/lib/libcrypto.so >&5
/usr/lib/gcc/aarch64-alpine-linux-musl/10.3.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/lib/libssl.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
configure:14755: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libssh2"
| #define PACKAGE_TARNAME "libssh2"
| #define PACKAGE_VERSION "-"
| #define PACKAGE_STRING "libssh2 -"
| #define PACKAGE_BUGREPORT "libssh2-devel@cool.haxx.se"
| #define PACKAGE_URL ""
| #define PACKAGE "libssh2"
| #define VERSION "-"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LONGLONG 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <openssl/ssl.h>
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:14765: result: no