libesmtp: not available for static builds
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Thu, 13 Mar 2014 13:55:21 +0000 (13:55 +0000)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 13 Mar 2014 21:59:07 +0000 (22:59 +0100)
This package requires libltdl and checks for it in the configure phase.
If it's not present, then the build process is stopped.

Fixes:
   http://autobuild.buildroot.net/results/5cf/5cf145d3f9c78bef1f66fe9b1831723de8b4969f/

[Peter: dependency should only apply to COLLECTD_NOTIFY_EMAIL suboption]
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/collectd/Config.in
package/libesmtp/Config.in

index 70b0439568dc8594da4c7758dcbe34e02b4cd9af..daa96033fe9a8fc944eb10b471c31a157263f63f 100644 (file)
@@ -58,12 +58,16 @@ config BR2_PACKAGE_COLLECTD_LOGFILE
 
 config BR2_PACKAGE_COLLECTD_NOTIFY_EMAIL
        bool "notify_email"
+       depends on !BR2_PREFER_STATIC_LIB # libesmtp
        select BR2_PACKAGE_LIBESMTP
        select BR2_PACKAGE_OPENSSL
        help
          Send an E-mail with the notification message to the
          configured recipients.
 
+comment "notify_email needs a toolchain w/ dynamic library"
+       depends on BR2_PREFER_STATIC_LIB
+
 config BR2_PACKAGE_COLLECTD_SYSLOG
        bool "syslog"
        default y
index 4e9e455d8178e8c94e88fe5fb514ea6857b74b85..42a1c08296c757f8d8971ec1b65f835220a22fde 100644 (file)
@@ -1,6 +1,10 @@
 config BR2_PACKAGE_LIBESMTP
        bool "libesmtp"
+       depends on !BR2_PREFER_STATIC_LIB
        help
          Library for sending emails through SMTP.
 
          http://www.stafford.uklinux.net/libesmtp
+
+comment "libesmtp needs a toolchain w/ dynamic library"
+       depends on BR2_PREFER_STATIC_LIB