File tree 5 files changed +7
-5
lines changed
5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
61
61
set (C_LINUX 1)
62
62
elseif (APPLE OR CMAKE_SYSTEM_NAME MATCHES "BSD" )
63
63
set (C_BSD 1)
64
+ elseif (CMAKE_SYSTEM_NAME MATCHES "AIX" )
65
+ set (AIX TRUE )
64
66
endif ()
65
67
66
68
# Git optionally used to add commit info into build to differentiate in bug reports.
Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ if(ENABLE_SHARED_LIB)
474
474
else ()
475
475
target_link_libraries ( clamav PUBLIC Iconv::Iconv )
476
476
endif ()
477
- if (UNIX AND NOT APPLE )
477
+ if (UNIX AND NOT APPLE AND NOT AIX )
478
478
target_link_options ( clamav PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR} /libclamav.map" )
479
479
endif ()
480
480
if (WIN32 )
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ if(ENABLE_SHARED_LIB)
97
97
98
98
if (WIN32 )
99
99
set_target_properties (clamunrar PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
100
- elseif (UNIX AND NOT APPLE )
100
+ elseif (UNIX AND NOT APPLE AND NOT AIX )
101
101
target_link_options (clamunrar PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR} /libclamunrar.map" )
102
102
endif ()
103
103
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ if(ENABLE_UNRAR)
64
64
65
65
if (WIN32 )
66
66
set_target_properties (clamunrar_iface PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
67
- elseif (UNIX AND NOT APPLE )
67
+ elseif (UNIX AND NOT APPLE AND NOT AIX )
68
68
target_link_options (clamunrar_iface PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR} /libclamunrar_iface.map" )
69
69
endif ()
70
70
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ if(ENABLE_SHARED_LIB)
52
52
target_link_libraries ( freshclam
53
53
PUBLIC
54
54
network )
55
- elseif (UNIX )
55
+ elseif (UNIX AND NOT AIX )
56
56
if (HAVE_RESOLV_H AND NOT C_BSD) # BSD appears to have libresolv inside libc
57
57
target_link_libraries ( freshclam
58
58
PUBLIC
@@ -62,7 +62,7 @@ if(ENABLE_SHARED_LIB)
62
62
63
63
if (WIN32 )
64
64
set_target_properties (freshclam PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
65
- elseif (UNIX AND NOT APPLE )
65
+ elseif (UNIX AND NOT APPLE AND NOT AIX )
66
66
target_link_options (freshclam PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR} /libfreshclam.map" )
67
67
endif ()
68
68
set_target_properties (freshclam PROPERTIES
You can’t perform that action at this time.
0 commit comments