2016-09-27 19:01:08 +00:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
2011-03-02 22:24:36 +00: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-05-05 19:11:35 +00:00
|
|
|
set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "+Z")
|
2011-03-02 22:24:36 +00:00
|
|
|
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "+Z")
|
2011-12-12 21:37:12 +00:00
|
|
|
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-Wl,-E,+nodefaultrpath -b -L/usr/lib")
|
2015-12-11 10:08:24 +00:00
|
|
|
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,-E")
|
2011-12-12 21:37:12 +00:00
|
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,+b")
|
2011-03-02 22:24:36 +00:00
|
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
|
2011-12-12 21:37:12 +00:00
|
|
|
set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,+h")
|
2011-03-02 22:24:36 +00:00
|
|
|
|
2016-07-05 17:35:13 +00:00
|
|
|
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
2015-12-11 10:08:24 +00:00
|
|
|
|
|
|
|
set(CMAKE_${lang}_LINK_FLAGS "-Wl,+s,+nodefaultrpath")
|
2011-03-02 22:24:36 +00:00
|
|
|
endmacro()
|