HP-UX-HP.cmake 837 B

1234567891011121314151617181920212223
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # This module is shared by multiple languages; use include blocker.
  4. if(__HPUX_COMPILER_HP)
  5. return()
  6. endif()
  7. set(__HPUX_COMPILER_HP 1)
  8. macro(__hpux_compiler_hp lang)
  9. set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "+Z")
  10. set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "+Z")
  11. set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-Wl,-E,+nodefaultrpath -b -L/usr/lib")
  12. set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,-E")
  13. set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,+b")
  14. set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
  15. set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,+h")
  16. string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
  17. set(CMAKE_${lang}_LINK_FLAGS "-Wl,+s,+nodefaultrpath")
  18. endmacro()