diff options
author | Brad King <brad.king@kitware.com> | 2011-03-02 22:49:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-03-02 22:49:17 (GMT) |
commit | d0f71e2545e234671abe3b6de325726f23cf854d (patch) | |
tree | 23df0d5a57ef6f814398ce8a7299c27b66f32ba1 /Modules | |
parent | bd580be526f7b394fb84960f3f706dae2d0eb940 (diff) | |
download | CMake-d0f71e2545e234671abe3b6de325726f23cf854d.zip CMake-d0f71e2545e234671abe3b6de325726f23cf854d.tar.gz CMake-d0f71e2545e234671abe3b6de325726f23cf854d.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/HP-UX-HP-ASM.cmake | 6 | ||||
-rw-r--r-- | Modules/Platform/HP-UX-HP.cmake | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Platform/HP-UX-HP-ASM.cmake b/Modules/Platform/HP-UX-HP-ASM.cmake new file mode 100644 index 0000000..0a85905 --- /dev/null +++ b/Modules/Platform/HP-UX-HP-ASM.cmake @@ -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>") diff --git a/Modules/Platform/HP-UX-HP.cmake b/Modules/Platform/HP-UX-HP.cmake index 772edb4..5e70d31 100644 --- a/Modules/Platform/HP-UX-HP.cmake +++ b/Modules/Platform/HP-UX-HP.cmake @@ -20,6 +20,7 @@ set(__HPUX_COMPILER_HP 1) set(_Wl_C "") set(_Wl_CXX "-Wl,") set(_Wl_Fortran "") +set(_Wl_ASM "") macro(__hpux_compiler_hp lang) set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "+Z") |