Skip to content

Commit

Permalink
fixed macOS build with OpenSSL pre-installed
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmorgner committed Aug 10, 2023
1 parent c548daa commit a5f3b3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MacOSX/build-package.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ if ! pkg-config libcrypto --atleast-version=1.0.1; then
fi
export OPENSSL_CFLAGS="`env PKG_CONFIG_PATH=$BUILDPATH/openssl_bin/$PREFIX/lib/pkgconfig PKG_CONFIG_SYSROOT_DIR=$BUILDPATH/openssl_bin pkg-config --static --cflags libcrypto`"
export OPENSSL_LIBS="` env PKG_CONFIG_PATH=$BUILDPATH/openssl_bin/$PREFIX/lib/pkgconfig PKG_CONFIG_SYSROOT_DIR=$BUILDPATH/openssl_bin pkg-config --static --libs libcrypto`"
export CRYPTO_CFLAGS="$OPENSSL_CFLAGS"
export CRYPTO_LIBS="$OPENSSL_LIBS"
fi

# Locate the latest OSX SDK
Expand All @@ -70,7 +72,7 @@ if ! test -e $BUILDPATH/openpace_bin/$PREFIX/lib/pkgconfig; then
fi
cd openpace
autoreconf -vis
./configure --disable-shared --prefix=$PREFIX CRYPTO_CFLAGS="$OPENSSL_CFLAGS" CRYPTO_LIBS="$OPENSSL_LIBS" HELP2MAN=/usr/bin/true
./configure --disable-shared --prefix=$PREFIX HELP2MAN=/usr/bin/true
touch src/cvc-create.1 src/cvc-print.1
make DESTDIR=$BUILDPATH/openpace_bin install
cd ..
Expand Down

0 comments on commit a5f3b3b

Please sign in to comment.