15 lines
837 B
Text
15 lines
837 B
Text
# Minimal link-time stub for macOS libiconv -- calog cross build (tools/crossDeps.sh mac libarchive).
|
|
#
|
|
# libarchive gates its libxml2 (hence xar) support on a working iconv, but zig's SDK-less libSystem
|
|
# stub exports no iconv symbols, so the detection link-test fails and xar is silently stubbed out.
|
|
# calog links against this hand-written stub (the real /usr/lib/libiconv.2.dylib is loaded by
|
|
# install-name at runtime on macOS) so libarchive detects iconv, enables libxml2, and builds a real
|
|
# xar read+write backend. Headers come from the real SDK at build time; link-time only. ASCII only.
|
|
--- !tapi-tbd
|
|
tbd-version: 4
|
|
targets: [ x86_64-macos, arm64-macos ]
|
|
install-name: '/usr/lib/libiconv.2.dylib'
|
|
exports:
|
|
- targets: [ x86_64-macos, arm64-macos ]
|
|
symbols: [ _iconv, _iconv_open, _iconv_close ]
|
|
...
|