Add libnl support and update prerequisites in build scripts

- Enhanced build-libraries.sh to configure and build libnl version 3.2.0, including checks for required tools like flex and bison.
- Updated download_prerequisites.sh to include the download link for libnl.
- Modified README.md to document the addition of libnl and its dependencies.
- Set LIBNL_VER to 3.2.0 in versions.sh for consistency across scripts.
This commit is contained in:
2026-04-06 14:56:50 +03:00
parent f7a908f096
commit 082098c9ec
4 changed files with 30 additions and 1 deletions

View File

@@ -89,6 +89,30 @@ make install
# ==================================================================
cd "${LIB_BUILD_DIR}/libnl-${LIBNL_VER}"
if ! command -v flex >/dev/null 2>&1; then
echo "Ошибка: для сборки libnl нужен flex (пакет flex)."
exit 1
fi
if ! command -v bison >/dev/null 2>&1; then
echo "Ошибка: для сборки libnl нужен bison (byacc не подходит)."
exit 1
fi
export YACC="bison -y"
export LEX="flex"
./configure \
--host="${TARGET}" \
--prefix="${SYSROOT_USR_DIR}" \
--libdir="${SYSROOT_USR_DIR}/lib" \
--disable-shared \
--enable-static \
--disable-cli
make -j$(nproc)
make install
unset YACC LEX
# ==================================================================
OPENSSL_S_SERVER_FILE="${LIB_BUILD_DIR}/openssl-${OPENSSL_VER}/apps/s_server.c"
if [ -f "${OPENSSL_S_SERVER_FILE}" ] && ! grep -q '^#include <sys/stat.h>$' "${OPENSSL_S_SERVER_FILE}"; then
echo "== Патч OpenSSL: добавляю <sys/stat.h> в apps/s_server.c =="