Opened 15 months ago

#72547 new enhancement

cctools: build vtool too

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

Description

Using a (hotpatched) current rust toolchain on OS X < 10.12 gives binaries that have LC_VERSION_MIN_MACOSX set to 10.12 even if you add -mmacosx-min-version 10.x to C(XX)FLAGS.

This can be corrected with vtool, but that utility isn't available on the systems concerned.

The attached patch enables building the tool, and backports a few required fixes from cctools 1010 (plus addresses the oversight that an unsigned buffer length variable cannot become negative but will go huge instead, leading to a crash).

Attachments (1)

patch-build-vtool.diff (2.4 KB) - added by RJVB (René Bertin) 15 months ago.

Download all attachments as: .zip

Change History (1)

Changed 15 months ago by RJVB (René Bertin)

Attachment: patch-build-vtool.diff added
Note: See TracTickets for help on using tickets.