2016-09-27 15:01:08 -04: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 17:24:36 -05: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 21:11:35 +02:00
|
|
|
set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "+Z")
|
2011-03-02 17:24:36 -05:00
|
|
|
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "+Z")
|
2011-12-12 16:37:12 -05:00
|
|
|
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-Wl,-E,+nodefaultrpath -b -L/usr/lib")
|
2015-12-11 11:08:24 +01:00
|
|
|
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,-E")
|
2011-12-12 16:37:12 -05:00
|
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,+b")
|
2011-03-02 17:24:36 -05:00
|
|
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
|
2011-12-12 16:37:12 -05:00
|
|
|
set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,+h")
|
2011-03-02 17:24:36 -05:00
|
|
|
|
2016-07-05 13:35:13 -04:00
|
|
|
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
2015-12-11 11:08:24 +01:00
|
|
|
|
|
|
|
set(CMAKE_${lang}_LINK_FLAGS "-Wl,+s,+nodefaultrpath")
|
2011-03-02 17:24:36 -05:00
|
|
|
endmacro()
|