From 31752b5500098e3723787359ebae27d34696cf2f Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Thu, 19 Aug 2021 14:25:35 +0100 Subject: hadrian: Use cp -RP rather than -P in install to copy symlinks For some inexplicable reason `-P` only takes effect on the mac version of p when you also pass `-R`. > Symbolic links are always followed unless the -R flag is set, in which case symbolic > links are not followed, by default. > -P If the -R option is specified, no symbolic links are followed. This is the > default. Fixes #20254 --- hadrian/bindist/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadrian/bindist/Makefile b/hadrian/bindist/Makefile index 892bbb4f64..74d2def7f5 100644 --- a/hadrian/bindist/Makefile +++ b/hadrian/bindist/Makefile @@ -32,7 +32,7 @@ define installscript # consistent naming procedure. if [ -L wrappers/$1 ]; then echo "$1 is a symlink"; fi @if [ -L wrappers/$1 ]; then \ - cp -P wrappers/$1 $2; \ + cp -RP wrappers/$1 $2; \ else \ rm -f '$2' && \ $(CREATE_SCRIPT) '$2' && \ -- cgit v1.2.1