Refactor build script and configuration for compatibility with cross-compiled OpenSSL and libnl versions, disabling unnecessary EAP methods and adjusting TLS settings to reduce binary size.

This commit is contained in:
2026-10-01 09:02:35 +03:00
parent 7813951ca6
commit 3739e2d6ae
4 changed files with 49 additions and 18 deletions

View File

@@ -60,7 +60,10 @@ if [ -z "${PKG_CONFIG_LIBDIR}" ]; then
die "No pkg-config directories found in SYSROOT"
fi
export PKG_CONFIG_SYSROOT_DIR="${SYSROOT}"
# Not setting PKG_CONFIG_SYSROOT_DIR: this SYSROOT's .pc files already bake
# in an absolute prefix pointing inside the sysroot itself (from how libnl
# was configured/installed), so sysroot-prefixing on top of that duplicates
# the path (.../sysroot/.../sysroot/usr/include/...) and breaks -I/-L.
export PKG_CONFIG_LIBDIR
unset PKG_CONFIG_PATH