Skip to content

Commit

Permalink
Fix build on OS X.
Browse files Browse the repository at this point in the history
With the latest Xcode on OS X, Apple removed the OpenSSL headers but
left the libraries. This meant the configure script was finding
libcrypto in /usr/lib but building things including OpenSSL headers
would fail.

Since building anything that uses OpenSSL is now broken, the only
reasonable way forward is to use OpenSSL from brew (or something else).
This commit fixes the build to look in the standard brew location for
OpenSSL for OS X.

For more information see this link:
http://lists.apple.com/archives/macnetworkprog/2015/Jun/msg00025.html

Fixes VirusTotal#351.
  • Loading branch information
wxsBSD committed Oct 1, 2015
1 parent 62c9bf8 commit 9b6c755
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ case $host_alias in
i?86-*-mingw*) CFLAGS="$CFLAGS -D__MINGW_USE_VC2005_COMPAT" ;;
esac

case $host_os in
darwin*) CFLAGS="$CFLAGS -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" ;;
esac


AC_ARG_ENABLE([profiling],
[AS_HELP_STRING([--enable-profiling], [enable profiling support])],
Expand Down

0 comments on commit 9b6c755

Please sign in to comment.