I just checked the CMake PG, and for Darwin it has a flag with the same effect, but it is MacOS-specific. So yes, we do not need this for Darwin at all, and I can make it specific to non-Apple.
On Tue, Sep 17, 2024 at 12:55 AM Christopher Jones via macports-dev < [email protected]> wrote: > > Hi, > > I would say unless there is a need to also use this flag on darwin builds, > and it would appear not, then as long as whatever you add to the PG it > *only* activates for linux, and not darwin, then it cannot have any serious > impact. > > Chris > > On 15 Sep 2024, at 1:59 PM, Sergey Fedorov <[email protected]> wrote: > > Currently nothing in MacPorts sets libdir for CMake ports. On MacOS this > is no issue. On Linux this leaves multiple ports broken, since CMake throws > libs into ${prefix}/lib64, where nothing looks for them, so all dependents > are broken. > As a few examples: libdeflate, lerc, libjpeg-turbo. > > I think this should be fixed in cmake PG. Any objections to this? > > Original PR for libdeflate, should be changed to a general fix: > https://github.com/macports/macports-ports/pull/25757 > > >
