乐趣区

关于跨平台:macos下编译openSSLlibhv编译

参考:https://juejin.cn/post/7265042701065961508

export OPENSSL_CRYPTO_LIBRARY=/usr/local/Cellar/openssl@1.1/1.1.1t
export OPENSSL_INCLUDE_DIR=/usr/local/Cellar/openssl@1.1/1.1.1t/include
export OPENSSL_ROOT_DIR=/usr/local/Cellar/openssl@1.1/1.1.1t
export LDFLAGS=”/usr/local/Cellar/openssl@1.1/1.1.1t/lib/libssl.a /usr/local/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.a”
export PKG_CONFIG_PATH=/usr/local/Cellar/openssl@1.1/1.1.1t
环境变量参数设置为这些才行

退出移动版