gnupg: depend on libiconv if appropriate
authorBernd Kuhls <berndkuhls@hotmail.com>
Mon, 30 Dec 2013 17:57:52 +0000 (18:57 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 4 Feb 2014 10:24:04 +0000 (11:24 +0100)
If iconv is built before gnupg, this package will link against it; if it is
built after this package, it will not be linked against it.  To make the
build reproducible, make sure that iconv is always built before this
package.

Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gnupg/gnupg.mk

index 39a37d0b174c3989acb3d545297c5cd55619a156..c334ac64b56e60aba05b1e0abc7a52648b6493d0 100644 (file)
@@ -9,7 +9,7 @@ GNUPG_SOURCE = gnupg-$(GNUPG_VERSION).tar.bz2
 GNUPG_SITE = ftp://ftp.gnupg.org/gcrypt/gnupg
 GNUPG_LICENSE = GPLv3+
 GNUPG_LICENSE_FILES = COPYING
-GNUPG_DEPENDENCIES = zlib ncurses
+GNUPG_DEPENDENCIES = zlib ncurses $(if $(BR2_PACKAGE_LIBICONV),libiconv)
 GNUPG_CONF_ENV = ac_cv_sys_symbol_underscore=no
 GNUPG_CONF_OPT = --disable-rpath --enable-minimal --disable-regex