Commit b81ee16e authored by Romain Naour's avatar Romain Naour Committed by Thomas Petazzoni
Browse files

package/rng-tools: needs argp-standalone with musl toolchains



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: default avatarRomain Naour <romain.naour@openwide.fr>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent eb60820c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
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
+3 −2
Original line number Diff line number Diff line
@@ -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