[Buildroot] [git commit] package/zsh: add optional support for pcre
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Feb 21 11:42:47 UTC 2016
commit: https://git.buildroot.net/buildroot/commit/?id=c7bfa231072412531c6c31c5f76fbd294ef55910
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
When pcre was compiled before, zsh will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/bin/zsh | grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libgdbm.so.4]
0x0000000000000001 (NEEDED) Shared library: [libpcre.so.1]
[...]
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
package/zsh/zsh.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/zsh/zsh.mk b/package/zsh/zsh.mk
index 9f4a582..8659fc4 100644
--- a/package/zsh/zsh.mk
+++ b/package/zsh/zsh.mk
@@ -26,6 +26,13 @@ else
ZSH_CONF_OPTS += --disable-cap
endif
+ifeq ($(BR2_PACKAGE_PCRE),y)
+ZSH_CONF_OPTS += --enable-pcre
+ZSH_DEPENDENCIES += pcre
+else
+ZSH_CONF_OPTS += --disable-pcre
+endif
+
# Remove versioned zsh-x.y.z binary taking up space
define ZSH_TARGET_INSTALL_FIXUPS
rm -f $(TARGET_DIR)/bin/zsh-$(ZSH_VERSION)
More information about the buildroot
mailing list