[CMake] How build AIX shared libraries with custom exports list

Rob Boehne robb at datalogics.com
Tue Jan 15 12:11:18 EST 2019


I submitted a patch a few weeks ago that would allow you to override the generated export list with the target property LINK_FLAGS.
This has been merged, but it is not yet present in the latest release.  The simplest way to go about this would be to set the variable
CMAKE_CXX_CREATE_SHARED_LIBRARY  as in cmake-3.13.3/Modules/Compiler/XL.cmake, but skip the bits you don't want.


On 1/15/19, 3:29 AM, "CMake on behalf of Raimo Kangassalo" <cmake-bounces at cmake.org on behalf of raimo.kangassalo at gmail.com> wrote:

    We need to build an AIX shared library with our own export list. It 
    seems that cmake always runs CreateExportList and I have not found a way 
    to suppress it.
    
    We use xlc and xlC compilers.
    
    Can someone help us with that.
    
    -- 
    
    Powered by www.kitware.com
    
    Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
    
    Kitware offers various services to support the CMake community. For more information on each offering, please visit:
    
    CMake Support: http://cmake.org/cmake/help/support.html
    CMake Consulting: http://cmake.org/cmake/help/consulting.html
    CMake Training Courses: http://cmake.org/cmake/help/training.html
    
    Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
    
    Follow this link to subscribe/unsubscribe:
    https://cmake.org/mailman/listinfo/cmake
    



More information about the CMake mailing list