diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-07-13 15:18:15 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-08-25 17:09:28 +0200 |
commit | a82f7a15c35c17ff6e32eb2f17a2d50d36b89f9d (patch) | |
tree | 96612501b08b7a9d104e6c5c55a0c21c5bd138cb | |
parent | 1a7e204aea96f4c50b82e7b834a88c1feb1c3161 (diff) | |
download | rules-cc-a82f7a15c35c17ff6e32eb2f17a2d50d36b89f9d.tar.gz |
foreign: Resolve DESTDIR symlinks instead of deleting them
-rw-r--r-- | CC/foreign/cmake/EXPRESSIONS | 4 | ||||
-rw-r--r-- | CC/foreign/make/EXPRESSIONS | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/CC/foreign/cmake/EXPRESSIONS b/CC/foreign/cmake/EXPRESSIONS index 362cca3..e762e58 100644 --- a/CC/foreign/cmake/EXPRESSIONS +++ b/CC/foreign/cmake/EXPRESSIONS @@ -251,7 +251,9 @@ } } } - , ["find ./install -type l -delete"] + , [ "mv install install_with_symlinks" + , "cp -rL install_with_symlinks install" + ] , { "type": "if" , "cond": {"type": "var", "name": "post_cmds"} , "then": diff --git a/CC/foreign/make/EXPRESSIONS b/CC/foreign/make/EXPRESSIONS index 6e0ddf8..36ac152 100644 --- a/CC/foreign/make/EXPRESSIONS +++ b/CC/foreign/make/EXPRESSIONS @@ -255,7 +255,9 @@ ] } } - , ["find ./install -type l -delete"] + , [ "mv install install_with_symlinks" + , "cp -rL install_with_symlinks install" + ] , { "type": "if" , "cond": {"type": "var", "name": "post_cmds"} , "then": |