pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: devel/lua-compat53 build error on macOS



On Mon, Jul 05, 2021 at 02:44:44PM +0100, Michael-John Turner wrote:
> Hi,
> 
> Building devel/lua-compat53 on macOS 10.15 and fails with the following
> error:
> 
> ---
> clang: error: invalid argument '-bundle' not allowed with '-dynamiclib'
> --- tests/testmod.so ---
> clang: error: invalid argument '-bundle' not allowed with '-dynamiclib'
> --- table.so ---
> clang: error: invalid argument '-bundle' not allowed with '-dynamiclib'
> ---
> 
> The build succeeds if -shared is removed from LDFLAGS (in files/Makefile) -
> I believe that's correct behaviour for macOS as -dynamiclib is still
> present during linking, so the .so files are still dylibs?
> 
> Cheers, MJ

Mm, I believe it should be a bundle (i.e. -shared) because it's a
loadable module and the file extension is .so, but I'm not a Mach-O
expert.


Home | Main Index | Thread Index | Old Index