Browse code

Fix build system to accept non-system crypto library locations for plugins.

Flags like {OPEN,POLAR}SSL_CFLAGS were used by the core build, but not by
the plugins. However, all plugins include openvpn-plugin.h, which need
crypto/ssl headers.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1398080238-19662-1-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8576
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit ea31bc680fc83946b2cc8d0c93544a1ab2a01d63)

Steffan Karger authored on 2014/04/21 20:37:18
Showing 2 changed files
... ...
@@ -8,8 +8,9 @@ MAINTAINERCLEANFILES = \
8 8
 	$(srcdir)/Makefile.in
9 9
 
10 10
 AM_CFLAGS = \
11
-	-I$(top_srcdir)/include
12
-	$(PLUGIN_AUTH_PAM_CFLAGS)
11
+	-I$(top_srcdir)/include \
12
+	$(PLUGIN_AUTH_PAM_CFLAGS) \
13
+	$(OPTIONAL_CRYPTO_CFLAGS)
13 14
 
14 15
 if ENABLE_PLUGIN_AUTH_PAM
15 16
 plugin_LTLIBRARIES = openvpn-plugin-auth-pam.la
... ...
@@ -8,7 +8,8 @@ MAINTAINERCLEANFILES = \
8 8
 	$(srcdir)/Makefile.in
9 9
 
10 10
 AM_CFLAGS = \
11
-	-I$(top_srcdir)/include
11
+	-I$(top_srcdir)/include \
12
+	$(OPTIONAL_CRYPTO_CFLAGS)
12 13
 
13 14
 if ENABLE_PLUGIN_DOWN_ROOT
14 15
 plugin_LTLIBRARIES = openvpn-plugin-down-root.la