> On Sep 29, 2024, at 10:35 AM, Gagan Sidhu via macports-dev > <macports-dev@lists.macports.org> wrote: > > in both cases where macports-libcxx is required, i find it easier to simply > add -L/opt/local/lib/libcxx to the ldflags. not sure if that’s bad form or > not. >
Well, if you do that, then you are not building against the right c++ headers that are supposed to match the new libc++ you are building against. And mixing things up like that is likely to lead to troubles, we have found. So we also override the default c++ header search path with certain flags to use the newer c++ headers instead. K