Re: git: 1953a12ee2cd - main - flua: support our flua modules in the bootstrap flua

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Fri, 03 Oct 2025 21:28:58 UTC
On 10/3/25 16:09, Konstantin Belousov wrote:
> On Fri, Oct 03, 2025 at 06:10:35PM +0000, Kyle Evans wrote:
>> The branch main has been updated by kevans:
>>
>> URL: https://cgit.FreeBSD.org/src/commit/?id=1953a12ee2cde1afacb3e3f7612d89695c96e04f
>>
>> commit 1953a12ee2cde1afacb3e3f7612d89695c96e04f
>> Author:     Kyle Evans <kevans@FreeBSD.org>
>> AuthorDate: 2025-10-03 18:09:03 +0000
>> Commit:     Kyle Evans <kevans@FreeBSD.org>
>> CommitDate: 2025-10-03 18:09:14 +0000
>>
>>      flua: support our flua modules in the bootstrap flua
>>      
>>      This version builds every module into the flua binary itself, since all
>>      of the bootstrap tools are built -DNO_SHARED.  As a result, we also
>>      cannot dlsym(), so we can't really discover the names of our newly
>>      builtin modules.  Instead, just build out a linker set with all of our
>>      luaopen_*() functions to register everything up-front.
> 
> You can use --export-dynamic AKA -E to allow for dlsym() to find
> symbols from the executable.  Of course, it is desirable to have
> version script to explicitly list the exported symbols.

The stub in libc seems to be an error and -DNO_SHARED means that we're built
statically, so we don't have rtld support.

Thanks,

Kyle Evans