From c60c58f877c7eda09baf81e1794883561181af07 Mon Sep 17 00:00:00 2001 From: Alessandro Di Nepi Date: Fri, 10 Jul 2026 11:06:23 +0200 Subject: [PATCH] Honor $(STRIP) in install-strip for cross-compilation The install-strip target hard-coded `install -s`, which strips via the install program using the build host's strip and ignores the STRIP variable. When cross-compiling this runs the host strip against a target binary and fails. Pass --strip-program=$(or $(STRIP),strip) so the target strip is used when STRIP is set (as cross toolchains and build systems provide), falling back to plain `strip` for native builds. A plain `make install` is unaffected. --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 5216fb2f7..d8c0928d4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -109,7 +109,7 @@ install-ssl-daemon: stunnel-rsyncd.conf install-all: install install-ssl-daemon install-strip: - $(MAKE) INSTALL_STRIP='-s' install + $(MAKE) INSTALL_STRIP='-s --strip-program=$(or $(STRIP),strip)' install .PHONY: uninstall uninstall: