AIX-XL.cmake 1.2 KB

12345678910111213141516171819202122232425262728
  1. #=============================================================================
  2. # Copyright 2002-2011 Kitware, Inc.
  3. #
  4. # Distributed under the OSI-approved BSD License (the "License");
  5. # see accompanying file Copyright.txt for details.
  6. #
  7. # This software is distributed WITHOUT ANY WARRANTY; without even the
  8. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. # See the License for more information.
  10. #=============================================================================
  11. # (To distribute this file outside of CMake, substitute the full
  12. # License text for the above reference.)
  13. # This module is shared by multiple languages; use include blocker.
  14. if(__AIX_COMPILER_XL)
  15. return()
  16. endif()
  17. set(__AIX_COMPILER_XL 1)
  18. macro(__aix_compiler_xl lang)
  19. set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,-blibpath:")
  20. set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
  21. set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-G -Wl,-brtl,-bnoipath") # -shared
  22. set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,-brtl,-bnoipath,-bexpall") # +s, flag for exe link to use shared lib
  23. set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS " ")
  24. set(CMAKE_SHARED_MODULE_${lang}_FLAGS " ")
  25. endmacro()