This is an archive of the discontinued LLVM Phabricator instance.

[Solaris] enable --whole-archive for shared-library build, disable --version-script for Solaris-ld
ClosedPublic

Authored by fedor.sergeev on Jul 12 2017, 2:53 PM.

Details

Summary

Shared-library build on Solaris requires --whole-archive to be specified (option accepted by all available linkers).

At the same time, --version-script can not be handled by Solaris-ld, so it should be skipped.
-M is of no use here, since there is no syntax in Solaris-ld mapfiles that allows to version all global symbols,
not just the named ones (at least this is my impression from digging deep into the docs).

Diff Detail

Event Timeline

fedor.sergeev created this revision.Jul 12 2017, 2:53 PM
ruiu edited edge metadata.Jul 13 2017, 11:21 AM

Due to lack of knowledge about Solaris, I'm probably not the right person to review this one.

fedor.sergeev edited reviewers, added: mgorny, axw; removed: ruiu.Jul 14 2017, 11:43 AM

I am not owner of this code but this seems reasonable if solaris doesn't support this option.

Who would be a proper person to LGTMize this? please?

ruiu added a subscriber: ruiu.Jul 18 2017, 2:00 PM

I don't know the answer, but git blame shows me that the file was mostly by Chris Bieneman, so he might be a good person to review.

In D35331#813546, @ruiu wrote:

I don't know the answer, but git blame shows me that the file was mostly by Chris Bieneman, so he might be a good person to review.

If I get it right the question everybody is asking here is not about the file and changes per se.
Rather it is about my assertions on Solaris (linker) behavior.

So I need to find Solaris expert rather than makefiles guru to get a solid review for this.

joerg accepted this revision.Jul 18 2017, 5:03 PM
This revision is now accepted and ready to land.Jul 18 2017, 5:03 PM

anybody with commit rights, commit this, please! :-/

done in revision r308490