mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-08 18:19:30 +00:00
There is an issue in building the bundled c-ares on certain
distributions such as SLES. The cmake file for c-ares sets 'CARES_LIB' destination directory to '${CARES_SRC}/lib' but when the bundled c-ares is compiled it produces a binary which is placed in the '${CARES_SRC}/lib64' directory. This is due to the fact that the bundled c-ares expands ${CMAKE_INSTALL_LIBDIR} to 'lib64' and not to 'lib' which is expected by 'CARES_LIB'. The fix is to enforce the building process of the bundled c-ares to place the produced binary in 'lib'. Signed-off-by: Tero Kauppinen <tero.kauppinen@est.tech>
This commit is contained in:
@@ -47,6 +47,7 @@ else()
|
||||
BUILD_IN_SOURCE 1
|
||||
CMAKE_ARGS -DCMAKE_POLICY_DEFAULT_CMP0091:STRING=NEW
|
||||
-DCMAKE_MSVC_RUNTIME_LIBRARY=${CMAKE_MSVC_RUNTIME_LIBRARY}
|
||||
-DCMAKE_INSTALL_LIBDIR=lib
|
||||
-DCARES_SHARED=${BUILD_SHARED_LIBS}
|
||||
-DCARES_STATIC=${CARES_STATIC_OPTION}
|
||||
-DCARES_STATIC_PIC=${ENABLE_PIC}
|
||||
|
Reference in New Issue
Block a user