File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,13 @@ add_clang_library(clang-cpp
4848 ${_OBJECTS}
4949 LINK_LIBS
5050 ${_DEPS} )
51+ # AIX linker does not support version script
52+ if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX" )
53+ configure_file (simple_version_script.map.in simple_version_script.map)
5154
52- configure_file (simple_version_script.map.in simple_version_script.map)
53-
54- if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
55- target_link_options (clang-cpp PRIVATE LINKER:--version -script,${CMAKE_CURRENT_BINARY_DIR} /simple_version_script.map)
55+ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
56+ target_link_options (clang-cpp PRIVATE LINKER:--version -script,${CMAKE_CURRENT_BINARY_DIR} /simple_version_script.map)
57+ endif ()
5658endif ()
5759
5860# Optimize function calls for default visibility definitions to avoid PLT and
You can’t perform that action at this time.
0 commit comments