diff --git a/libfreshclam/CMakeLists.txt b/libfreshclam/CMakeLists.txt
index 97a3aae1c..a3e6f05c4 100644
--- a/libfreshclam/CMakeLists.txt
+++ b/libfreshclam/CMakeLists.txt
@@ -49,10 +49,10 @@ if(ENABLE_SHARED_LIB)
                 ${APPLE_CORE_FOUNDATION}
                 ${APPLE_SECURITY} )
     elseif(UNIX)
-        if(HAVE_RESOLV_H AND NOT C_BSD) # BSD appears to have libresolv inside libc
-            target_link_libraries( freshclam
-                PUBLIC
-                    resolv )
+        if(HAVE_RESOLV_H AND NOT C_BSD ) # BSD appears to have libresolv inside libc
+            #target_link_libraries( freshclam
+                #PUBLIC
+                   # resolv )
         endif()
     endif()
