瀏覽代碼

package/git: add optional support for pcre2

Renamed --with-libpcre to --with-libpcre1. Currently --with-libpcre
activates pcre1 support but this can change in the future to pcre2:
https://github.com/git/git/blob/df7fd961a9d9ba60840ffc0868d36cc3db2aec74/configure.ac#L258

Please note that we cannot use --with-/--without because it will lead
to an error reported by configure, for example

    --with-libpcre1 --without-libpcre2

will produce

configure: error: Only supply one of --with-libpcre1 or --with-libpcre2!

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Bernd Kuhls 7 年之前
父節點
當前提交
9c2a54a542
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      package/git/git.mk

+ 5 - 2
package/git/git.mk

@@ -19,9 +19,12 @@ else
 GIT_CONF_OPTS += --without-openssl
 GIT_CONF_OPTS += --without-openssl
 endif
 endif
 
 
-ifeq ($(BR2_PACKAGE_PCRE),y)
+ifeq ($(BR2_PACKAGE_PCRE2),y)
+GIT_DEPENDENCIES += pcre2
+GIT_CONF_OPTS += --with-libpcre2
+else ifeq ($(BR2_PACKAGE_PCRE),y)
 GIT_DEPENDENCIES += pcre
 GIT_DEPENDENCIES += pcre
-GIT_CONF_OPTS += --with-libpcre
+GIT_CONF_OPTS += --with-libpcre1
 GIT_MAKE_OPTS += NO_LIBPCRE1_JIT=1
 GIT_MAKE_OPTS += NO_LIBPCRE1_JIT=1
 else
 else
 GIT_CONF_OPTS += --without-libpcre
 GIT_CONF_OPTS += --without-libpcre