Add ASM platform information for HP compiler on HP
Among other flags this sets RPATH flags correctly so that CMake knows how to treat CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH for the ASM language.
This commit is contained in:
parent
bd580be526
commit
d0f71e2545
|
@ -0,0 +1,6 @@
|
||||||
|
include(Platform/HP-UX-HP)
|
||||||
|
__hpux_compiler_hp(ASM)
|
||||||
|
|
||||||
|
set(CMAKE_SHARED_LIBRARY_CREATE_ASM_FLAGS "-E -b +nodefaultrpath -L/usr/lib")
|
||||||
|
|
||||||
|
set(CMAKE_ASM_CREATE_SHARED_LIBRARY "ld <CMAKE_SHARED_LIBRARY_CREATE_ASM_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_ASM_FLAG><TARGET_SONAME> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
|
@ -20,6 +20,7 @@ set(__HPUX_COMPILER_HP 1)
|
||||||
set(_Wl_C "")
|
set(_Wl_C "")
|
||||||
set(_Wl_CXX "-Wl,")
|
set(_Wl_CXX "-Wl,")
|
||||||
set(_Wl_Fortran "")
|
set(_Wl_Fortran "")
|
||||||
|
set(_Wl_ASM "")
|
||||||
|
|
||||||
macro(__hpux_compiler_hp lang)
|
macro(__hpux_compiler_hp lang)
|
||||||
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "+Z")
|
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "+Z")
|
||||||
|
|
Loading…
Reference in New Issue