diff options
author | Carl Dong <contact@carldong.me> | 2020-11-09 14:58:42 -0500 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2020-11-09 16:58:26 -0500 |
commit | 6c7e8f067dcf4c5d793d162aeb84f074f9a14664 (patch) | |
tree | 87e02dcd9be1b1c7587f8598d7ae5305a74fa746 /test/lint/lint-shell.sh | |
parent | 1dfe19e2840b16c014674a890ba58a43fe039687 (diff) | |
download | bitcoin-6c7e8f067dcf4c5d793d162aeb84f074f9a14664.tar.xz |
depends: Allow relative CONFIG_SITE path env var
Previously, if ./configure was invoked with:
```
$ env CONFIG_SITE=depends/x86_64-pc-linux-gnu/share/config.site ./configure
```
Where $CONFIG_SITE was a relative path, ./configure would fail with the
following misleading output:
```
checking for boostlib >= 1.58.0 (105800)... yes
checking whether the Boost::System library is available... yes
configure: error: Could not find a version of the Boost::System library!
```
Fully resolving depends_prefix in config.site.in fixes this. To make
sure that there are no other side effects I ran a diff on the
config.status generated by:
1. The scripts prior to this change with CONFIG_SITE set to a full path:
env CONFIG_SITE=$PWD/depends/x86_64-pc-linux-gnu/share/config.site ./configure
2. The scripts after this change with CONFIG_SITE set to a relative path:
env CONFIG_SITE=depends/x86_64-pc-linux-gnu/share/config.site ./configure
And it looks good!
Diff: https://paste.sr.ht/~dongcarl/95b469fbc555c128046e85723d87a9082a754f6b
Diffstat (limited to 'test/lint/lint-shell.sh')
0 files changed, 0 insertions, 0 deletions