Use -std=gnu17 to compile wolfssl and use all cores to compile

This commit is contained in:
Duke
2025-12-29 22:35:22 -05:00
parent 3b77ddc16e
commit 8dc516e82f
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ endef
#endef
define $(package)_build_cmds
$(MAKE) CPPFLAGS='-fPIC' -j1 src/libwolfssl.la
$(MAKE) CPPFLAGS='-fPIC -std=gnu17' -j$(nproc) src/libwolfssl.la
endef
define $(package)_stage_cmds

View File

@@ -301,7 +301,7 @@ WOLFSSL_CTX* TLSManager::initCtx(TLSContextType ctxType)
bool bInitialized = false;
WOLFSSL_CTX* tlsCtx = NULL;
byte *pem;
unsigned char *pem;
int plen = 0;
if ((tlsCtx = wolfSSL_CTX_new(ctxType == SERVER_CONTEXT ? wolfTLSv1_3_server_method() : wolfTLSv1_3_client_method()))) {