Re: On the availability of "--exclude-libs" like functionality in ld64
Re: On the availability of "--exclude-libs" like functionality in ld64
- Subject: Re: On the availability of "--exclude-libs" like functionality in ld64
- From: Francesco Pretto via Darwin-dev <email@hidden>
- Date: Mon, 21 Feb 2022 14:53:25 +0100
Dear Axel,
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
<email@hidden> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden