mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-04-30 15:56:25 +00:00
Fix dynamic library extension on macOS
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
eea9c74d81
commit
8e8e96500a
|
@ -34,9 +34,15 @@
|
||||||
#include "mbedtls/x509_crt.h"
|
#include "mbedtls/x509_crt.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CRYPTO_SO_FILENAME "libmbedcrypto.so"
|
#if defined(__APPLE__)
|
||||||
#define X509_SO_FILENAME "libmbedx509.so"
|
#define SO_SUFFIX ".dylib"
|
||||||
#define TLS_SO_FILENAME "libmbedtls.so"
|
#else
|
||||||
|
#define SO_SUFFIX ".so"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define CRYPTO_SO_FILENAME "libmbedcrypto" SO_SUFFIX
|
||||||
|
#define X509_SO_FILENAME "libmbedx509" SO_SUFFIX
|
||||||
|
#define TLS_SO_FILENAME "libmbedtls" SO_SUFFIX
|
||||||
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue