summaryrefslogtreecommitdiff
path: root/patch/TARGETS
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-11 13:11:49 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-11 13:19:51 +0200
commit4752073b984845a407b45855d42f4d4733b49efd (patch)
treed4a22ba983ded872d7c7e93fc47d3e6b71e5f50e /patch/TARGETS
parentd22a155812d4f24d6c6b1b3126635e41324e552a (diff)
downloadrules-cc-4752073b984845a407b45855d42f4d4733b49efd.tar.gz
foreign rules: fix computation of absolute paths
When setting CC, etc, in foreign rules, it is often useful to have it set as absolute path. This originally was achieved using realpath(1). This, however, implies that symbolic links are followed as well, which confuses some compilers if they are not called with correct argv[0]. Therefore, 4e86f756bddca8db402502be47c0825e1e2aeb0d tries to replace this by concatenation with $(pwd), which, however, is only correct for tools brought locally by the toolchain. Hence fix the test by not evaluating it in the shell at all and rather using the knowledge about toolchain versus system tools that the rules have anyway.
Diffstat (limited to 'patch/TARGETS')
0 files changed, 0 insertions, 0 deletions