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 Aug 12, 2025, at 08:53, Mansour Moufid <mansourmoufid%gmail.com@localhost> wrote:
>
> I'll follow up with the next step(s).
>
Next, if I set MACOSX_DEPLOYMENT_TARGET="11.0" in ~/.profile, bootstrap fails:
configure:3441: checking whether the C compiler works
configure:3463: gcc -isysroot /nonexistent conftest.c >&5
clang: warning: no such sysroot directory: '/nonexistent' [-Wmissing-sysroot]
ld: library 'System' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3467: $? = 1
see log here:
https://github.com/mansourmoufid/pkgsrc-macos-test/actions/runs/16911956796/job/47915741117
So I unset MACOSX_DEPLOYMENT_TARGET just before bootstrapping.
(MACOSX_DEPLOYMENT_TARGET is not the same thing as the SDK version, it's the equivalent of clang's -mmacos-version-min. See here: https://clang.llvm.org/docs/CommandGuide/clang.html#envvar-MACOSX_DEPLOYMENT_TARGET )
The bootstrap is successful, but then building any package fails with:
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Unable to find macOS SDK at /nonexistent
ERROR: Check MACOSX_DEPLOYMENT_TARGET points to a valid SDK
see log here:
https://github.com/mansourmoufid/pkgsrc-macos-test/actions/runs/16912926065/job/47919232854
So I define the OSX_SDK_PATH variable in mk.conf:
.if ${OPSYS} == "Darwin"
SDKROOT!= xcrun --sdk macosx --show-sdk-path
OSX_SDK_PATH= ${SDKROOT}
.endif
Home |
Main Index |
Thread Index |
Old Index