Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation

From: Gerd Möllmann <[email-masked]>
Date: Fri, 16 Sep 2022 14:44:12 +0200

On 22-09-16 14:39 , Lars Ingebrigtsen wrote:
> Gerd Möllmann <[email-masked]> writes:
> 
>> Maybe it's a libgccjit thing?  It seems to pass that to ld.
>>
>> /opt/homebrew/opt/ > strings
>> /opt/homebrew/Cellar/libgccjit/12.2.0/lib/gcc/current/libgccjit.0.dylib|grep
>> dynamic_lookup
>> -Wl,-undefined,dynamic_lookup
> 
> They mention "-bundle_loader", but since I can't find the link to the
> actual patch, I'm not sure what, if anything, they're talking about...

Yeah, that's my problem, too :-)

The ld man page says

    Options when creating a bundle
      -bundle_loader executable
              This specifies the executable that will be loading the bundle
              output file being linked.  Undefined symbols from the 
bundle are
              checked against the specified executable like it was one 
of the
              dynamic libraries the bundle was linked with.

That doesn't look like the right thing.