[cmake-developers] [PATCH] Allow for toolchain override of AIX/HP libpath.

Matthew Hanna (BLOOMBERG/ 731 LEX) mhanna21 at bloomberg.net
Tue May 17 12:26:44 EDT 2016


Hi,

The attached patch allows for a toolchain or command line override of the CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH that is only used in AIX.cmake and HP-UX.cmake.  The specific case this patch is for, is compiling third party code on AIX for deployment in an environment in which we maintain versioned shared libraries.  In its current state, cmake will append -Wl,-blibpath:/usr/lib:/lib to the end of the link line.  Based on the interface of the xlC linker, the last entry replaces prior instances.  In order to allow for customization of the libpath without customizing a third party's CMakeLists.txt file, we are proposing that the runtime variable only be set if the variable is not set.

Regards,
Matthew Hanna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160517/89a3d19a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PATCH-Allow-for-toolchain-override-of-AIX-HP-libpath.patch
Type: application/octet-stream
Size: 1506 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160517/89a3d19a/attachment.obj>


More information about the cmake-developers mailing list