Opened 4 months ago

Last modified 4 months ago

#69992 new enhancement

port:cctools : also build libmacho

Reported by: RJVB (René Bertin) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: cctools

Description

A suggestion for a small but potentially useful enhancement on older systems: let port:cctools also install an up-to-date libmacho.dylib.

Potential use at least in a future version of port:cmake as CMake is set to gain an internal UB architecture detection algorithm, as a replacement of parsing the output of lipo -info.

There's probably little real need to control this feature via a variant but I used one anyway "just in case".

Attachments (1)

build_libmacho.patch (3.1 KB) - added by RJVB (René Bertin) 4 months ago.

Download all attachments as: .zip

Change History (2)

Changed 4 months ago by RJVB (René Bertin)

Attachment: build_libmacho.patch added

comment:1 Changed 4 months ago by RJVB (René Bertin)

In case anyone wonders:the cctools Makefile doesn't make building all the shared libraries the project can build trivial: setting BUILD_DYLIBS=YES leads to attempts to write under $prefix during the build.

I failed to get simpler post-build step to work, of the form system -W ${worksrcpath}/libmacho "${build.cmd} ${build.pre_args} ${build.post_args}", because of quoting problems.

Note: See TracTickets for help on using tickets.