mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 11:54:16 +01:00
3ed4263ad7
The makefile build specifies -L. -lmbedx509 -lmbedcrypto flags first, and only then object files referencing symbols from those libraries. In this order the linker will not add the linked libraries to the DT_NEEDED section because they are not referenced yet (at least that happens for me on ubuntu 20.04 with the default gnu compiler tools). By first specifying the object files and then the linked libraries, we do end up with libmbedx509 and libmbedcrypto in the DT_NEEDED sections. This way running dlopen(...) on libmedtls.so just works. Note that the CMake build does this by default. Signed-off-by: Harmen Stoppels <harmenstoppels@gmail.com>
4 lines
138 B
Plaintext
4 lines
138 B
Plaintext
Bugfix
|
|
* Fix issue in Makefile on Linux with SHARED=1, that caused shared libraries
|
|
not to list other shared libraries they need.
|