[Forensics-changes] [yara] 80/368: Fix build on OS X.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:13 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.5.0
in repository yara.
commit 9b6c755e0dce42920058a181adf2da1871588758
Author: Wesley Shields <wxs at atarininja.org>
Date: Thu Oct 1 12:39:06 2015 -0400
Fix build on OS X.
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 #351.
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index 0b41e00..89a76b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])],
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list