pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: turn off CHECK_SHLIBS on macOS?



* On 2025-08-12 at 18:07 BST, Mansour Moufid wrote:


On Aug 12, 2025, at 12:47, Jonathan Perkin <jperkin%pkgsrc.org@localhost> wrote:

If you're trying to use a newer SDK to build for an older target then we don't support that.  Install the XCode that targets the SDK that you want to build for and use that.

Yes exactly, I'm building on the latest macOS (15.5) and wanted the binary packages to run on any macOS >=11.0, so I set MACOSX_DEPLOYMENT_TARGET to 11.0. The SDK is the command line tools SDK, not the SDK in Xcode.

I was hoping to avoid installing Xcode because it's huge, and just use the command line tools. Maybe I have to give up on that idea... :(

Yeh, it's incredibly painful to try anything other than just using the Xcode that targets the release you want to build for. I made some notes:

  https://github.com/jperkin/notes/tree/main/xcode-clt-selection

and that only scratches the surface of the many other issues I've ran into over the years while producing macOS packages for https://pkgsrc.smartos.org/install-on-macos/

If you want to target 11.0 then install Xcode 12.4 and use its default (11.0) SDK, though as mentioned you'll start to hit problems with some
software requiring newer standards than that supports.

--
Jonathan Perkin                    pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index