macos下编译openSSL、libhv编译

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

export OPENSSL_CRYPTO_LIBRARY=/usr/local/Cellar/[email protected]/1.1.1t
export OPENSSL_INCLUDE_DIR=/usr/local/Cellar/[email protected]/1.1.1t/include
export OPENSSL_ROOT_DIR=/usr/local/Cellar/[email protected]/1.1.1t
export LDFLAGS="/usr/local/Cellar/[email protected]/1.1.1t/lib/libssl.a /usr/local/Cellar/[email protected]/1.1.1t/lib/libcrypto.a"
export PKG_CONFIG_PATH=/usr/local/Cellar/[email protected]/1.1.1t
环境变量参数设置为这些才行

你可能感兴趣的:(跨平台c++)