diff options
| author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2016-02-21 10:50:11 +0100 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-02-21 12:42:43 +0100 |
| commit | 3fc55da0e8479fc6103af80c3a08334fbaacc5cc (patch) | |
| tree | 4ea7fabef31baca8fb874d79bac5cd749b12fb46 /package/zsh | |
| parent | d8692be657f59b1e11b8a61d9e75aac598e8b86a (diff) | |
| download | buildroot-3fc55da0e8479fc6103af80c3a08334fbaacc5cc.tar.gz buildroot-3fc55da0e8479fc6103af80c3a08334fbaacc5cc.zip | |
package/zsh: add optional support for libcap
When libcap 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: [libcap.so.2]
[...]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/zsh')
| -rw-r--r-- | package/zsh/zsh.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/package/zsh/zsh.mk b/package/zsh/zsh.mk index c3af034101..9f4a5827b7 100644 --- a/package/zsh/zsh.mk +++ b/package/zsh/zsh.mk @@ -19,6 +19,13 @@ else ZSH_CONF_OPTS += --disable-gdbm endif +ifeq ($(BR2_PACKAGE_LIBCAP),y) +ZSH_CONF_OPTS += --enable-cap +ZSH_DEPENDENCIES += libcap +else +ZSH_CONF_OPTS += --disable-cap +endif + # Remove versioned zsh-x.y.z binary taking up space define ZSH_TARGET_INSTALL_FIXUPS rm -f $(TARGET_DIR)/bin/zsh-$(ZSH_VERSION) |

