[Qt-interest] [Qt4] ELF visibility with SunStudio compiler
Darin Broady
dbroady1 at yahoo.com
Thu Jan 21 15:17:18 CET 2010
If anyone current is using the SunStudio compiler suite to compile Qt, then the following may be of interest to you.
I have created a merge request that allows for Qt to be built with ELF visibility with the SunStudio compilers (8 or later) using the compiler option -xldscope, and the code attributes __global/__hidden. It requires patching 5 files, all relatively simple if you wish to it manually. This will mostly match up the SunStudio compilers with how GCC 4+ implements ELF visibility. The only part not matched up is GCC's -fvisibility-inlines-hidden option, which has no equilvalent in SunStudio.
I have tested the examples that come with Qt to make sure that everything works as expected, and I have found no problems thus far. If you find an issue with this patch, please let me know so that I can update the merge request. Thanks.
The merge request is at: http://qt.gitorious.org/qt/qt/merge_requests/433
Darin Broady
dbroady1 at yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100121/e498af62/attachment.html
More information about the Qt-interest-old
mailing list