Hi,
we have issues linking against shared libraries created in our project on AIX
7.1 with XLC 12.1 when creating 64bit applications. The created shared
libraries to not export any symbols.
After some digging around I figured out that this is due to a missing argument for IBM's XL CreateExportList tool called from the generated "link.txt" file. For 64bit shared libraries this tool should be called with -X64 (and -X32 for 32bit to be consistent).

The arguments for this tool seems to be set in "Modules/Compiler/XL.cmake".
Unfortunately I could not figure out myself how to add or not add the "-X64"
to the commandline, depending on the whether a particular build run is
creating 32 or 64bit objects.
Could someone with more intimate knowledge of how the CMake internal modules handle this look into this, please?

Thanks,

--
Michael Hufer
Senior Software Developer
-------------------------------
Dion Global Solutions GmbH
Mainzer Landstr. 199  I  60322 Frankfurt am Main  I  Germany
phone: +49 69 50952 241
email:[email protected] | web: www.dionglobal.com/de
HRB-Nr./Commercial Register No. 83397
Geschäftsführer / Managing Directors: Ralph James Horne, Joseph Nash

--

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:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to