build: Never strip macOS libraries when cross-compiling

libtool assumes "GNU strip" accepts --strip-unneeded, but at least recent versions of LLVM do not (for MachO) yet claim to be compatible with "GNU strip".
For now, we just disable stripping libraries entirely when cross-compiling for macOS.
This commit is contained in:
Luke Dashjr 2025-03-04 21:41:46 +00:00
parent 3e63c467e5
commit fab39a63d6

View File

@ -739,6 +739,13 @@ case $host in
dnl which may not exist in the path. Stripping the .a is not dnl which may not exist in the path. Stripping the .a is not
dnl necessary, so just disable it. dnl necessary, so just disable it.
old_striplib= old_striplib=
dnl libtool assumes "GNU strip" accepts --strip-unneeded, but at
dnl least recent versions of LLVM do not yet claim to be compatible
dnl with "GNU strip". For now, we just disable stripping shared
dnl libraries too, but it would be better to actually test the strip
dnl program (FIXME).
striplib=
;; ;;
esac esac
fi fi