summaryrefslogtreecommitdiff
path: root/src/src/sha_ver.h
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2016-10-18 23:22:03 -0400
committerPhil Pennock <pdp@exim.org>2016-10-18 23:28:13 -0400
commit8b0fb68e04323248df1208516e8a9293af9859d8 (patch)
tree63c1589280b367a4fa75c72824c6a7508e3b4577 /src/src/sha_ver.h
parent8d330698b5121d75af35b62b420314f68026d1e5 (diff)
downloadexim4-8b0fb68e04323248df1208516e8a9293af9859d8.tar.gz
Unbreak build: crypto hdrs not in system includes
If using pkg-config to get the paths for various packages and the crypto library headers are not in the system headers, then the hash work broke the Exim build by requiring the CFLAGS manipulation for _all_ builds, not just the TLS libraries. Shows up on MacOS where there's a system OpenSSL but not system OpenSSL headers (because only SecureTransport is supported) and using brew-installed OpenSSL. I've also coded the fix for GnuTLS on the same basis, but that's untested. Fixes bug 1906
Diffstat (limited to 'src/src/sha_ver.h')
-rw-r--r--src/src/sha_ver.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/src/sha_ver.h b/src/src/sha_ver.h
index fd1a4d083..387ac52c1 100644
--- a/src/src/sha_ver.h
+++ b/src/src/sha_ver.h
@@ -9,6 +9,13 @@
#include "exim.h"
+/* Please be aware that pulling in extra headers which are not in the system
+ * includes may require careful juggling of CFLAGS in
+ * scripts/Configure-Makefile -- that logic should be kept in sync with this.
+ * In particular, building with just something like USE_OPENSSL_PC=openssl
+ * and not massaging CFLAGS in Local/Makefile is fully supported.
+ */
+
#ifdef SUPPORT_TLS
# define EXIM_HAVE_SHA2