ports/unix: Allow building and linking dynamically against libmbedtls on Linux
Description
It would be nice if micropython could be built against the libmbedtls from a linux distro instead of the one bundled with the sources - similar to as it works now with libffi on the unix port.
Code Size
No response
Implementation
I hope the MicroPython maintainers or community will implement this feature
Code of Conduct
Yes, I agree
docs: pots/unix (standalone) has no instructions to build static linked micropython instance
Documentation URL
https://github.com/micropython/micropython/blob/master/ports/unix/README.md
Description
The ports/unix instructions not provide a way to build micropython with LDFLAGS -static to link ld statically. So even if you trying to build standalone binary it still build dynamic linked instance (e.g. ld.so.1). Dynamic linking to system ld.so.1 makes impossible to run binary on systems like Buildroot Linux
For make fully standalone static linked build you should directly modify Makefile cause make not handle LDFLAGS and docs not give instructions for this case.
Relative to issue: https://github.com/micropython/micropython/issues/17353
Code of Conduct
Yes, I agree