Testcase: port graphics/py-open3d-python with removed patch files/Python_CMakeLists.txt
cmake introduces the -flto option only on 12 for some reason. This causes the build to fail:
/usr/local/bin/ld: /usr/bin/../lib/LLVMgold.so: error loading plugin: Cannot open "/usr/bin/../lib/LLVMgold.so"
c++: error: linker command failed with exit code 1 (use -v to see invocation)
cmake isn't part of base. Should this be retargeted at the port?
With a 12-stable (I think) jail on a 12-stable host, configure output contains
-- LTO disabled (not supported by the compiler and/or linker)
The build fails for other reasons though -- but that looks like a py-open3d problem more than a cmake problem.
This was fixed in r478808 with a patch to graphics/py-open3d-python, because **that** port was adding -flto specifically in its CMake files. It was not a problem with devel/cmake itself.
^Triage: Re-classify, Assign to committer that resolved