seems to be a tonne of opportunity to smoke fink

Gagan Sidhu broly at mac.com
Wed Sep 25 20:14:07 UTC 2024


thanks ken. i am aware of this library, but i’ve never used it outside of building clang with the +libstdcxx flag.

i guess this may be a case of updating some portfiles to use this flag.

doesn't nodejs18 have this portgroup enabled? i see

> PortGroup               legacysupport 1.1


and 

> [legacysupport::get_library_link_flags]


in the LDFLAGS. 

i assumed that meant it was included. or must 

> legacysupport.use_mp_libcxx yes


still be added? 

Thanks,
Gagan

> On Sep 25, 2024, at 2:05 PM, Ken Cunningham <ken.cunningham.webuse at gmail.com> wrote:
> 
> check out:
> 
> https://ports.macports.org/port/macports-libcxx/
> 
> 
>> On Sep 25, 2024, at 12:22 PM, Gagan Sidhu via macports-dev <macports-dev at lists.macports.org> wrote:
>> 
>> … but i guess we’re shorthanded.
>> 
>> today i built nodejs18 with a couple of flags anyone could find if they attempted it (after removing the OS check via sudo port edit), and then hard-coding (lol it was a test) -L/opt/local/libexec/llvm-17/lib/libc++
>> 
>> it works completely fine if i put that path on LD_LIBRARY_PATH (“just?” lol)
>> - i know that’s a huge siren for the maintainers here lol, i get it, but the point isn’t that this version was ready for distribution)
>> 
>> given the static libc++ included in the ports llvm, it seems to me there is a tonne of opportunity to use the static libc++ from newer llvms to supplement the older /usr/lib/libc++ to take our game to the next level.
>> 
>> of course it may not be that simple. i’m far from a compiler expert, acknowledge the library name clash of /usr/lib/libc++ and the static in /opt/local/libexec/llvm-<version>, and this may be what the macports libc++ was designed to alleviate.
>> 
>> i just thought it was pretty interesting to have a newish node on an “old” OS with relatively little effort.
>> - i bet this experience would apply to a lot of ports, hence my first line (underhanded).
>> 
>> 
>> Thanks,
>> Gagan
>> 
> 



More information about the macports-dev mailing list