Skip to content

Fix the OpenSSL 3.x symbols not found on macOS build #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pkg/mac/build-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ if [ ! -f curl-${CURL_VERSION}/.done ]; then
CURL_VERSION_=${CURL_VERSION//./_}
download_dependency $ROOT_DIR/dependencies.yaml curl
pushd curl-${CURL_VERSION}
CFLAGS="-fPIC -arch arm64 -arch x86_64 -mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}" \
# Force the compiler to find the OpenSSL headers instead of the headers in the system path like /usr/local/include/openssl.
cp -rf $PREFIX/include/openssl include/
CFLAGS="-I$PREFIX/include -fPIC -arch arm64 -arch x86_64 -mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}" \
./configure --with-ssl=$PREFIX \
--without-nghttp2 \
--without-libidn2 \
Expand Down
2 changes: 2 additions & 0 deletions pkg/mac/build-pulsar-cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ if [ ! -f apache-pulsar-client-cpp-${PULSAR_CPP_VERSION}/.done ]; then
ARCHS='arm64;x86_64'

cmake . \
-DCMAKE_CXX_STANDARD=11 \
-DCMAKE_OSX_ARCHITECTURES=${ARCHS} \
-DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=${DEPS_PREFIX} \
-DCMAKE_CXX_FLAGS=-I${DEPS_PREFIX}/include \
-DOPENSSL_ROOT_DIR=${DEPS_PREFIX} \
-DLINK_STATIC=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_WIRESHARK=OFF \
Expand Down