From 170b14efa7b0c9efc6ef2dfd851009593f60b41f Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Fri, 21 Jun 2024 10:10:05 +0200 Subject: [PATCH] contrib: use install to copy config.guess/sub --- contrib/src/main.mak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/src/main.mak b/contrib/src/main.mak index e715c8f909..f1762beef0 100644 --- a/contrib/src/main.mak +++ b/contrib/src/main.mak @@ -446,7 +446,8 @@ AUTOMAKE_DATA_DIRS:=$(foreach n,$(foreach n,$(subst :, ,$(shell echo $$PATH)),$( update_autoconfig = \ for dir in $(AUTOMAKE_DATA_DIRS); do \ if test -f "$${dir}/config.sub" -a -f "$${dir}/config.guess"; then \ - cp "$${dir}/config.sub" "$${dir}/config.guess" $(UNPACK_DIR)/$(1)/; \ + install -p "$${dir}/config.guess" "$(UNPACK_DIR)/$(1)/"; \ + install -p "$${dir}/config.sub" "$(UNPACK_DIR)/$(1)/"; \ break; \ fi; \ done