1# Distributed under the OSI-approved BSD 3-Clause License. See accompanying 2# file Copyright.txt or https://cmake.org/licensing for details. 3 4 5# This module is shared by multiple languages; use include blocker. 6if(__HPUX_COMPILER_HP) 7 return() 8endif() 9set(__HPUX_COMPILER_HP 1) 10 11macro(__hpux_compiler_hp lang) 12 set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "+Z") 13 set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "+Z") 14 set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-Wl,-E,+nodefaultrpath -b -L/usr/lib") 15 set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,-E") 16 set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,+b") 17 set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":") 18 set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,+h") 19 20 string(APPEND CMAKE_${lang}_FLAGS_INIT " ") 21 22 set(CMAKE_${lang}_LINK_FLAGS "-Wl,+s,+nodefaultrpath") 23endmacro() 24