cmake/Modules/Platform/HP-UX-HP.cmake

24 lines
837 B
CMake
Raw Normal View History

2016-10-30 18:24:19 +01:00
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
2011-06-19 15:41:06 +03:00
# This module is shared by multiple languages; use include blocker.
if(__HPUX_COMPILER_HP)
return()
endif()
set(__HPUX_COMPILER_HP 1)
macro(__hpux_compiler_hp lang)
2012-06-27 20:52:58 +03:00
set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "+Z")
2011-06-19 15:41:06 +03:00
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "+Z")
2012-02-18 12:40:36 +02:00
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-Wl,-E,+nodefaultrpath -b -L/usr/lib")
2016-03-13 13:35:51 +01:00
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,-E")
2012-02-18 12:40:36 +02:00
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,+b")
2011-06-19 15:41:06 +03:00
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
2012-02-18 12:40:36 +02:00
set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,+h")
2011-06-19 15:41:06 +03:00
2016-10-30 18:24:19 +01:00
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
2016-03-13 13:35:51 +01:00
set(CMAKE_${lang}_LINK_FLAGS "-Wl,+s,+nodefaultrpath")
2011-06-19 15:41:06 +03:00
endmacro()