2002-11-08 23:46:08 +03:00
|
|
|
SET(CMAKE_DL_LIBS "")
|
|
|
|
|
|
|
|
IF(CMAKE_SYSTEM MATCHES "OSF1-1.[012]")
|
|
|
|
ENDIF(CMAKE_SYSTEM MATCHES "OSF1-1.[012]")
|
|
|
|
IF(CMAKE_SYSTEM MATCHES "OSF1-1.*")
|
|
|
|
# OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fpic") # -pic
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fpic") # -pic
|
|
|
|
ENDIF(CMAKE_SYSTEM MATCHES "OSF1-1.*")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -Wl,-expect_unresolved,\\*") # -shared
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared -Wl,-expect_unresolved,\\*") # -shared
|
|
|
|
IF(CMAKE_COMPILER_IS_GNUCXX)
|
2003-01-05 19:24:36 +03:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-Wl,-rpath,")
|
2002-11-08 23:46:08 +03:00
|
|
|
ELSE(CMAKE_COMPILER_IS_GNUCXX)
|
2003-01-02 16:51:23 +03:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-rpath ")
|
2002-11-08 23:46:08 +03:00
|
|
|
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
2003-01-02 16:51:23 +03:00
|
|
|
IF(CMAKE_COMPILER_IS_GNUCC)
|
2003-01-06 16:39:21 +03:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "-Wl,-rpath,")
|
2003-01-02 16:51:23 +03:00
|
|
|
ELSE(CMAKE_COMPILER_IS_GNUCC)
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "-rpath ")
|
|
|
|
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
2002-11-08 23:46:08 +03:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP ":")
|
|
|
|
ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
|
|
|
|
|
2003-11-14 18:44:12 +03:00
|
|
|
# include the gcc flags
|
|
|
|
INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake)
|