embedded: Document how to clean up linker flags

Our embedded crate includes instructions to source a shell script that
sets the `RUSTFLAGS` env var. Having the env var set like this in ones
environment breaks linkage when trying to do "regular" builds.

Document how to clean up.
This commit is contained in:
Tobin C. Harding 2023-05-26 14:39:14 +10:00
parent b5aa482532
commit 3af9258025
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 9 additions and 0 deletions

View File

@ -23,3 +23,12 @@ Address: bc1qpx9t9pzzl4qsydmhyt6ctrxxjd4ep549np9993
```
Note that this heap size is required because of the amount of stack used by libsecp256k1 when initializing a context.
## Cleanup
After sourcing `scripts/env.sh` and _before_ building again using another target
you'll want to unset `RUSTFLAGS` otherwise you'll get linker errors.
```shell
unset RUSTFLAGS
```