mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-26 20:38:25 +00:00
make it possible to set SSL_LIB and CRYPTO_LIB during build
This commit is contained in:
1 parent
e97762879d
commit
0db96c5ba5
2 files changed
+6
No files matched your search
@@ -14,6 +14,8 @@ all:
|
|||||||
# -DNO_SSL - disable SSL functionality (-2kb)
|
# -DNO_SSL - disable SSL functionality (-2kb)
|
||||||
# -DCONFIG_FILE=\"file\" - use `file' as the default config file
|
# -DCONFIG_FILE=\"file\" - use `file' as the default config file
|
||||||
# -DHAVE_STRTOUI64 - use system strtoui64() function for strtoull()
|
# -DHAVE_STRTOUI64 - use system strtoui64() function for strtoull()
|
||||||
|
# -DSSL_LIB=\"libssl.so.<version>\" - use system versioned SSL shared object
|
||||||
|
# -DCRYPTO_LIB=\"libcrypto.so.<version>\" - use system versioned CRYPTO so
|
||||||
|
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|||||||
@@ -181,9 +181,13 @@ typedef struct DIR {
|
|||||||
#define SSL_LIB "libssl.dylib"
|
#define SSL_LIB "libssl.dylib"
|
||||||
#define CRYPTO_LIB "libcrypto.dylib"
|
#define CRYPTO_LIB "libcrypto.dylib"
|
||||||
#else
|
#else
|
||||||
|
#if !defined(SSL_LIB)
|
||||||
#define SSL_LIB "libssl.so"
|
#define SSL_LIB "libssl.so"
|
||||||
|
#endif
|
||||||
|
#if !defined(CRYPTO_LIB)
|
||||||
#define CRYPTO_LIB "libcrypto.so"
|
#define CRYPTO_LIB "libcrypto.so"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#define DIRSEP '/'
|
#define DIRSEP '/'
|
||||||
#define IS_DIRSEP_CHAR(c) ((c) == '/')
|
#define IS_DIRSEP_CHAR(c) ((c) == '/')
|
||||||
#define O_BINARY 0
|
#define O_BINARY 0
|
||||||
|
|||||||
Reference in new issue
Block a user