package/rng-tools: needs argp-standalone with musl toolchains
authorRomain Naour <romain.naour@openwide.fr>
Fri, 7 Aug 2015 22:47:13 +0000 (00:47 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 8 Aug 2015 09:02:07 +0000 (11:02 +0200)
Since argp-standalone is only available for uClibc-ng
and musl toolchains, it's safe to link with it when
the package is selected.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/rng-tools/Config.in
package/rng-tools/rng-tools.mk

index 43c5a1c2e5b9454991f928d72d6ca466ca381d90..469b60e89b428100ec82b4142d57798a30e35840 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_RNG_TOOLS
        bool "rng-tools"
-       select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC
+       select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
        # For rdrand ligcrypt is required and it's not obvious to users
        select BR2_PACKAGE_LIBGCRYPT if BR2_i386 || BR2_x86_64
        help
index 8648c4f878c5c6e86681439fd0e07f37496e6897..7e975e048e291eca7826237290a2507d512d8d02 100644 (file)
@@ -9,8 +9,9 @@ RNG_TOOLS_SITE = http://downloads.sourceforge.net/project/gkernel/rng-tools/$(RN
 RNG_TOOLS_LICENSE = GPLv2
 RNG_TOOLS_LICENSE_FILES = COPYING
 
-# Work around for uClibc's lack of argp_*() functions
-ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
+# Work around for uClibc or musl toolchains which lack argp_*()
+# functions.
+ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
 RNG_TOOLS_CONF_ENV += LIBS="-largp"
 RNG_TOOLS_DEPENDENCIES += argp-standalone
 endif