OSF1.cmake 890 B

1234567891011121314151617181920212223
  1. SET(CMAKE_DL_LIBS "")
  2. IF(CMAKE_SYSTEM MATCHES "OSF1-1.[012]")
  3. ENDIF(CMAKE_SYSTEM MATCHES "OSF1-1.[012]")
  4. IF(CMAKE_SYSTEM MATCHES "OSF1-1.*")
  5. # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
  6. SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fpic") # -pic
  7. SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fpic") # -pic
  8. ENDIF(CMAKE_SYSTEM MATCHES "OSF1-1.*")
  9. IF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
  10. SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -Wl,-expect_unresolved,\\*") # -shared
  11. SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared -Wl,-expect_unresolved,\\*") # -shared
  12. IF(CMAKE_COMPILER_IS_GNUCXX)
  13. SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "-Wl,-rpath,")
  14. ELSE(CMAKE_COMPILER_IS_GNUCXX)
  15. SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "-rpath ")
  16. ENDIF(CMAKE_COMPILER_IS_GNUCXX)
  17. SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP ":")
  18. ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")