--- src/syscheckd/src/db/CMakeLists.txt	2025-05-11 01:12:38.188450000 -0700
+++ src/syscheckd/src/db/CMakeLists.txt	2025-05-11 01:13:28.349743000 -0700
@@ -64,7 +64,7 @@
 endif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
 
 if(NOT CMAKE_SYSTEM_NAME STREQUAL "AIX")
-  target_link_libraries(fimdb dbsync rsync wazuhext)
+  target_link_libraries(fimdb dbsync ${SRC_FOLDER}/shared_modules/rsync/build/lib/librsync.so wazuhext)
 else()
   target_link_libraries(
     fimdb
