* [Buildroot] [PATCH 1/1] package/mc: add optional support for libssh2
@ 2016-02-10 21:21 Bernd Kuhls
2016-02-16 22:16 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2016-02-10 21:21 UTC (permalink / raw)
To: buildroot
When libssh2 was compiled before, mc will use it as optional dependency:
$ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/mc | grep NEEDED
0x00000001 (NEEDED) Shared library: [libncurses.so.5]
0x00000001 (NEEDED) Shared library: [libssh2.so.1]
0x00000001 (NEEDED) Shared library: [libz.so.1]
0x00000001 (NEEDED) Shared library: [libgcrypt.so.20]
0x00000001 (NEEDED) Shared library: [libgpg-error.so.0]
0x00000001 (NEEDED) Shared library: [libglib-2.0.so.0]
0x00000001 (NEEDED) Shared library: [libpthread.so.1]
0x00000001 (NEEDED) Shared library: [libintl.so.8]
0x00000001 (NEEDED) Shared library: [libc.so.1]
0x00000001 (NEEDED) Shared library: [libiconv.so.2]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/mc/mc.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/mc/mc.mk b/package/mc/mc.mk
index 39de165..eb4b104 100644
--- a/package/mc/mc.mk
+++ b/package/mc/mc.mk
@@ -11,6 +11,13 @@ MC_LICENSE = GPLv3+
MC_LICENSE_FILES = COPYING
MC_DEPENDENCIES = libglib2 host-pkgconf
+ifeq ($(BR2_PACKAGE_LIBSSH2),y)
+MC_CONF_OPTS += --enable-vfs-sftp
+MC_DEPENDENCIES += libssh2
+else
+MC_CONF_OPTS += --disable-vfs-sftp
+endif
+
# mc prefers slang, so use that if enabled, otherwise
# fallback to using ncurses.
# Either or both will be enabled, but we prefer slang.
--
2.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/mc: add optional support for libssh2
2016-02-10 21:21 [Buildroot] [PATCH 1/1] package/mc: add optional support for libssh2 Bernd Kuhls
@ 2016-02-16 22:16 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-02-16 22:16 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Wed, 10 Feb 2016 22:21:32 +0100, Bernd Kuhls wrote:
> When libssh2 was compiled before, mc will use it as optional dependency:
>
> $ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/mc | grep NEEDED
> 0x00000001 (NEEDED) Shared library: [libncurses.so.5]
> 0x00000001 (NEEDED) Shared library: [libssh2.so.1]
> 0x00000001 (NEEDED) Shared library: [libz.so.1]
> 0x00000001 (NEEDED) Shared library: [libgcrypt.so.20]
> 0x00000001 (NEEDED) Shared library: [libgpg-error.so.0]
> 0x00000001 (NEEDED) Shared library: [libglib-2.0.so.0]
> 0x00000001 (NEEDED) Shared library: [libpthread.so.1]
> 0x00000001 (NEEDED) Shared library: [libintl.so.8]
> 0x00000001 (NEEDED) Shared library: [libc.so.1]
> 0x00000001 (NEEDED) Shared library: [libiconv.so.2]
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> package/mc/mc.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-16 22:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-10 21:21 [Buildroot] [PATCH 1/1] package/mc: add optional support for libssh2 Bernd Kuhls
2016-02-16 22:16 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox