Use -std=gnu17 to compile wolfssl and use all cores to compile
This commit is contained in:
@@ -64,7 +64,7 @@ endef
|
|||||||
#endef
|
#endef
|
||||||
|
|
||||||
define $(package)_build_cmds
|
define $(package)_build_cmds
|
||||||
$(MAKE) CPPFLAGS='-fPIC' -j1 src/libwolfssl.la
|
$(MAKE) CPPFLAGS='-fPIC -std=gnu17' -j$(nproc) src/libwolfssl.la
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
define $(package)_stage_cmds
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ WOLFSSL_CTX* TLSManager::initCtx(TLSContextType ctxType)
|
|||||||
bool bInitialized = false;
|
bool bInitialized = false;
|
||||||
WOLFSSL_CTX* tlsCtx = NULL;
|
WOLFSSL_CTX* tlsCtx = NULL;
|
||||||
|
|
||||||
byte *pem;
|
unsigned char *pem;
|
||||||
int plen = 0;
|
int plen = 0;
|
||||||
|
|
||||||
if ((tlsCtx = wolfSSL_CTX_new(ctxType == SERVER_CONTEXT ? wolfTLSv1_3_server_method() : wolfTLSv1_3_client_method()))) {
|
if ((tlsCtx = wolfSSL_CTX_new(ctxType == SERVER_CONTEXT ? wolfTLSv1_3_server_method() : wolfTLSv1_3_client_method()))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user