From fab39a63d6eb9f25371ed2349cd2286c8347f31e Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 4 Mar 2025 21:41:46 +0000 Subject: [PATCH] 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. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 891bc5aa42..d26d71f6cc 100644 --- a/configure.ac +++ b/configure.ac @@ -739,6 +739,13 @@ case $host in dnl which may not exist in the path. Stripping the .a is not dnl necessary, so just disable it. 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 fi