diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-08-19 14:25:35 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2021-08-23 13:33:48 +0100 |
commit | 62b574455ba07eaa81e1945ad8c27bfa4e11cf4c (patch) | |
tree | db13dc72b3a4219a6cd8fb61b1822c6fdd5b8a7a | |
parent | ad28ae41206e3a8b483b067a8e3333df445010b6 (diff) | |
download | haskell-wip/fix-cp-darwin-head.tar.gz |
hadrian: Use cp -RP rather than -P in install to copy symlinkswip/fix-cp-darwin-head
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
-rw-r--r-- | hadrian/bindist/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
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' && \ |