yes, definitely, ant it's recent enough since it looks like it was not
available in XCode11. It has a different semantics, since this mean
that one has to specify all the "hidden" libraries, and possibly the
"-hidden-lx" has to used instead of "-lx", for example "-hidden-lssl"
instead of "-lss"[1]. In a sense, the "--exclude-libs" semantics still
looks more appealing, since it doesn't require changes to an existing
build infrastructure (think of CMake/autotools controlled build), and
a different behavior can be enforced by patching linker flags (also
the wildcard "ALL" in --exclude-libs is useful). Will "-hidden-lx"
work also with multiple conflicting switches, like the last switch in
the command line wins (similarly to compilation flags)?
Cheers,
Francesco
[1] https://stackoverflow.com/a/70425525/213871
On Mon, 21 Feb 2022 at 14:05, Axel Lüttgens via Darwin-dev
<darwi...@lists.apple.com> wrote:
>
> Hello Francesco,
>
> Could option "-hidden-lx" of ld be of some help?
>
> Axel
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-dev mailing list (Darwi...@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/darwin-dev/ceztko%40gmail.com
>
> This email sent to cez...@gmail.com