nrpe: update to 4.1.3
[oi-userland.git] / components / sysutils / clamav / patches / 01_version-script.patch
blob8f3112a45db667f3c20a8cce7b8d0516c7bc48b1
1 --- clamav-1.1.0/libfreshclam/CMakeLists.txt 2023-04-28 22:54:01.000000000 +0200
2 +++ clamav-1.1.0/libfreshclam/CMakeLists.txt.new 2023-05-03 21:16:52.477856750 +0200
3 @@ -56,11 +56,11 @@
4 endif()
5 endif()
7 - if(WIN32)
8 - set_target_properties(freshclam PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
9 - elseif(UNIX AND NOT APPLE)
10 - target_link_options(freshclam PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libfreshclam.map")
11 - endif()
12 +# if(WIN32)
13 +# set_target_properties(freshclam PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
14 +# elseif(UNIX AND NOT APPLE)
15 +# target_link_options(freshclam PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libfreshclam.map")
16 +# endif()
17 set_target_properties(freshclam PROPERTIES
18 COMPILE_FLAGS "${WARNCFLAGS}"
19 VERSION ${LIBFRESHCLAM_VERSION} SOVERSION ${LIBFRESHCLAM_SOVERSION})
20 --- clamav-1.1.0/libclamunrar_iface/CMakeLists.txt 2023-04-28 22:54:01.000000000 +0200
21 +++ clamav-1.1.0/libclamunrar_iface/CMakeLists.txt.new 2023-05-03 21:18:38.193681771 +0200
22 @@ -60,11 +60,11 @@
24 endif()
26 - if(WIN32)
27 - set_target_properties(clamunrar_iface PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
28 - elseif(UNIX AND NOT APPLE)
29 - target_link_options(clamunrar_iface PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libclamunrar_iface.map")
30 - endif()
31 +# if(WIN32)
32 +# set_target_properties(clamunrar_iface PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
33 +# elseif(UNIX AND NOT APPLE)
34 +# target_link_options(clamunrar_iface PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libclamunrar_iface.map")
35 +# endif()
37 # Private (internal-only) dependencies.
38 target_link_libraries( clamunrar_iface
39 --- clamav-1.1.0/libclamunrar/CMakeLists.txt 2023-04-28 22:54:01.000000000 +0200
40 +++ clamav-1.1.0/libclamunrar/CMakeLists.txt.new 2023-05-03 21:18:01.082163255 +0200
41 @@ -93,11 +93,11 @@
43 endif()
45 - if(WIN32)
46 - set_target_properties(clamunrar PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
47 - elseif(UNIX AND NOT APPLE)
48 - target_link_options(clamunrar PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libclamunrar.map")
49 - endif()
50 +# if(WIN32)
51 +# set_target_properties(clamunrar PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
52 +# elseif(UNIX AND NOT APPLE)
53 +# target_link_options(clamunrar PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libclamunrar.map")
54 +# endif()
56 if(WIN32)
57 install(TARGETS clamunrar DESTINATION . COMPONENT libraries)
58 --- clamav-1.1.0/libclamav/CMakeLists.txt 2023-04-28 22:54:01.000000000 +0200
59 +++ clamav-1.1.0/libclamav/CMakeLists.txt.new 2023-05-03 21:21:47.935900574 +0200
60 @@ -464,9 +464,9 @@
61 else()
62 target_link_libraries( clamav PUBLIC Iconv::Iconv )
63 endif()
64 - if(UNIX AND NOT APPLE)
65 - target_link_options( clamav PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libclamav.map")
66 - endif()
67 +# if(UNIX AND NOT APPLE)
68 +# target_link_options( clamav PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libclamav.map")
69 +# endif()
70 if(WIN32)
71 install( TARGETS clamav DESTINATION . COMPONENT libraries )
72 install( FILES $<TARGET_PDB_FILE:clamav> DESTINATION . OPTIONAL COMPONENT libraries )