浏览代码

systemd: add optional dependency on pcre2

systemd can use libpcre2 when available, so this commit adds the
detection of this library.

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Jérémy Rosen 7 年之前
父节点
当前提交
b8dd03de56
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      package/systemd/systemd.mk

+ 7 - 0
package/systemd/systemd.mk

@@ -144,6 +144,13 @@ else
 SYSTEMD_CONF_OPTS += -Dgcrypt=false
 SYSTEMD_CONF_OPTS += -Dgcrypt=false
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_PCRE2),y)
+SYSTEMD_DEPENDENCIES += pcre2
+SYSTEMD_CONF_OPTS += -Dpcre2=true
+else
+SYSTEMD_CONF_OPTS += -Dpcre2=false
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY),y)
 ifeq ($(BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY),y)
 SYSTEMD_DEPENDENCIES += libmicrohttpd
 SYSTEMD_DEPENDENCIES += libmicrohttpd
 SYSTEMD_CONF_OPTS += -Dmicrohttpd=true
 SYSTEMD_CONF_OPTS += -Dmicrohttpd=true