File openvas-libraries-3.0.5-no_undefined.patch of Package openvas-libraries

Index: misc/CMakeLists.txt
===================================================================
--- misc/CMakeLists.txt.orig	2010-03-24 08:43:00.000000000 +0100
+++ misc/CMakeLists.txt	2010-04-13 13:32:46.433116332 +0200
@@ -157,6 +157,8 @@ set (HEADERS arglists.h bpf_share.h ftp_
              openvas_server.h openvas_auth.h scanners_utils.h services1.h
              share_fd.h store.h system.h www_funcs.h)
 
+link_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../base)
+
 add_library (openvas_misc_static STATIC ${FILES})
 set_target_properties (openvas_misc_static PROPERTIES COMPILE_FLAGS "${GLIB_CFLAGS}")
 set_target_properties (openvas_misc_static PROPERTIES OUTPUT_NAME "openvas_misc")
@@ -170,6 +172,7 @@ set_target_properties (openvas_misc_shar
 set_target_properties (openvas_misc_shared PROPERTIES SOVERSION "${CPACK_PACKAGE_VERSION_MAJOR}")
 set_target_properties (openvas_misc_shared PROPERTIES VERSION "${CPACK_PACKAGE_VERSION}")
 set_target_properties (openvas_misc_shared PROPERTIES PUBLIC_HEADER "${HEADERS}")
+target_link_libraries (openvas_misc_shared glib-2.0 pcap gnutls gcrypt openvas_base)
 
 if (OPENVAS_USERS_DIR)
   add_definitions (-DOPENVAS_USERS_DIR=\\\"${OPENVAS_USERS_DIR}\\\")
Index: hg/CMakeLists.txt
===================================================================
--- hg/CMakeLists.txt.orig	2010-04-13 13:35:13.000000000 +0200
+++ hg/CMakeLists.txt	2010-04-13 13:38:50.199115720 +0200
@@ -145,6 +145,8 @@ set (FILES hg_add_hosts.c hg_debug.c hg_
 
 set (HEADERS hg_utils.h hosts_gatherer.h)
 
+link_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../misc)
+
 add_library (openvas_hg_static STATIC ${FILES})
 set_target_properties (openvas_hg_static PROPERTIES COMPILE_FLAGS "${GLIB_CFLAGS}")
 set_target_properties (openvas_hg_static PROPERTIES OUTPUT_NAME "openvas_hg")
@@ -158,6 +160,7 @@ set_target_properties (openvas_hg_shared
 set_target_properties (openvas_hg_shared PROPERTIES SOVERSION "${CPACK_PACKAGE_VERSION_MAJOR}")
 set_target_properties (openvas_hg_shared PROPERTIES VERSION "${CPACK_PACKAGE_VERSION}")
 set_target_properties (openvas_hg_shared PROPERTIES PUBLIC_HEADER "${HEADERS}")
+target_link_libraries (openvas_hg_shared resolv openvas_misc)
 
 if (OPENVAS_PID_DIR)
   add_definitions (-DOPENVAS_PID_DIR=\\\"${OPENVAS_PID_DIR}\\\")