From d0f71e2545e234671abe3b6de325726f23cf854d Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 2 Mar 2011 17:49:17 -0500 Subject: [PATCH] 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. --- Modules/Platform/HP-UX-HP-ASM.cmake | 6 ++++++ Modules/Platform/HP-UX-HP.cmake | 1 + 2 files changed, 7 insertions(+) create mode 100644 Modules/Platform/HP-UX-HP-ASM.cmake diff --git a/Modules/Platform/HP-UX-HP-ASM.cmake b/Modules/Platform/HP-UX-HP-ASM.cmake new file mode 100644 index 000000000..0a85905eb --- /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 -o ") diff --git a/Modules/Platform/HP-UX-HP.cmake b/Modules/Platform/HP-UX-HP.cmake index 772edb4c2..5e70d3175 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")