[cmake-developers] [CMake][PATCH] AIX RPATH handling
CHEVRIER, Marc
marc.chevrier at sap.com
Wed Dec 9 09:09:43 EST 2015
You are right. I missed this capability.
My first idea was to apply to exec the same approach as for shared lib but I didn’t found appropriate variable: something like CMAKE_EXE_CREATE_<LANG>_FLAGS
Or may be CMAKE_EXE_LINKER_FLAGS_INIT can be used but I am not sure of the usage of the *_INIT variables.
Marc
On 09/12/15 15:00, "Brad King" <brad.king at kitware.com> wrote:
>On 12/09/2015 08:02 AM, CHEVRIER, Marc wrote:
>> Attached is a patch for AIX enabling correct generation of executables
>> regarding runtime path handling (currently, build paths could be stored
>> as part of installed executables): option -bnoipath is required for
>> executables link command (currently, only shared libs link command
>> get -bnoipath option).
>
>Thanks. I agree that -bnoipath should be used for all linking because
>we never want the path to a library file to be encoded in its dependents.
>However, the proposed patch moves the flag over to the flags used to
>specify the RPATH. These may not be used if CMAKE_SKIP_RPATH or similar
>options are enabled. We should find another place for the flag that
>is always used for both shared libraries and executables.
>
>Thanks,
>-Brad
>
More information about the cmake-developers
mailing list