1set(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib 2set(CMAKE_SHARED_LIBRARY_SUFFIX ".so") # .so 3set(CMAKE_AIX_IMPORT_FILE_PREFIX "") 4set(CMAKE_AIX_IMPORT_FILE_SUFFIX ".imp") 5set(CMAKE_DL_LIBS "-lld") 6 7# RPATH support on AIX is called libpath. By default the runtime 8# libpath is paths specified by -L followed by /usr/lib and /lib. In 9# order to prevent the -L paths from being used we must force use of 10# -Wl,-blibpath:/usr/lib:/lib whether RPATH support is on or not. 11# When our own RPATH is to be added it may be inserted before the 12# "always" paths. 13if(NOT DEFINED CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH) 14 set(CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH /usr/lib /lib) 15endif() 16 17# Files named "libfoo.a" may actually be shared libraries. 18set_property(GLOBAL PROPERTY TARGET_ARCHIVES_MAY_BE_SHARED_LIBS 1) 19 20# since .a can be a static or shared library on AIX, we can not do this. 21# at some point if we wanted it, we would have to figure out if a .a is 22# static or shared, then we could add this back: 23 24# Initialize C link type selection flags. These flags are used when 25# building a shared library, shared module, or executable that links 26# to other libraries to select whether to use the static or shared 27# versions of the libraries. 28#foreach(type SHARED_LIBRARY SHARED_MODULE EXE) 29# set(CMAKE_${type}_LINK_STATIC_C_FLAGS "-bstatic") 30# set(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-bdynamic") 31#endforeach() 32 33include(Platform/UnixPaths) 34