blob: 825028222ff82ebbf9bce24b00b97f743a27ddc9 [file] [log] [blame]
Andrew Geissler5bea8d82020-07-24 16:10:05 -05001From db772305c6baa01f6c6750be74733e4bfc1d6106 Mon Sep 17 00:00:00 2001
2From: Tobias Brunner <tobias@strongswan.org>
3Date: Tue, 14 Apr 2020 10:44:19 +0200
4Subject: [PATCH] xfrmi: Only build if libcharon is built
5
6The kernel-netlink plugin is only built if libcharon is.
7
8Closes strongswan/strongswan#167.
9
10Upstream-Status: Backport
11Signed-off-by: Armin Kuster <akuster808@gmail.com>
12
13---
14 src/Makefile.am | 7 +++----
15 1 file changed, 3 insertions(+), 4 deletions(-)
16
17Index: strongswan-5.8.4/src/Makefile.am
18===================================================================
19--- strongswan-5.8.4.orig/src/Makefile.am
20+++ strongswan-5.8.4/src/Makefile.am
21@@ -42,6 +42,9 @@ endif
22
23 if USE_LIBCHARON
24 SUBDIRS += libcharon
25+if USE_KERNEL_NETLINK
26+ SUBDIRS += xfrmi
27+endif
28 endif
29
30 if USE_FILE_CONFIG
31@@ -143,7 +146,3 @@ endif
32 if USE_TPM
33 SUBDIRS += tpm_extendpcr
34 endif
35-
36-if USE_KERNEL_NETLINK
37- SUBDIRS += xfrmi
38-endif