From fcb8066624fdf2cda246c255cec4a201b8c948ce Mon Sep 17 00:00:00 2001 From: Conrad Kostecki Date: Sat, 13 Jan 2024 21:44:48 +0100 Subject: [PATCH] CMakeLists.txt: add BUILD_SHARED_LIBS=OFF This disabled shared libs, as otherwise the compilation could fail. The installed binary files are still dynamically linked, as this affects only internal linking here. Closes: https://github.com/john30/ebusd/issues/1132 Signed-off-by: Conrad Kostecki --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b787d40b..cb532e87 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,8 @@ endif() add_definitions(-fpic -Wall -Wno-unused-function -Wextra) +set(BUILD_SHARED_LIBS OFF) + check_include_file(arpa/inet.h HAVE_ARPA_INET_H) check_include_file(dirent.h HAVE_DIRENT_H) check_include_file(fcntl.h HAVE_FCNTL_H)