]> code.ossystems Code Review - openembedded-core.git/commit
rng-tools: fix the build with musl
authorChristopher Larson <chris_larson@mentor.com>
Tue, 16 Feb 2016 03:07:26 +0000 (20:07 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Feb 2016 11:15:44 +0000 (11:15 +0000)
commit94ecc846f9b33fcec039936643c49728eedfefb7
treec4348acf7d3f2d2f6067ccedaa35fde3dc6d71ee
parente3d879c5c222bc27b2e78cdb097aab9820f2c68b
rng-tools: fix the build with musl

musl doesn't provide argp, so we need argp-standalone, as we do for uclibc.
Rather than passing in -largp via the recipe, patch the configure script to
provide an argument for the libargp usage and check for it when needed, and
use PACKAGECONFIG. The initial patch to check for libargp and use it if
available came from Gentoo. The patches are kept separate despite the second
modifying what the first does, in order to keep the history/origin clear.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/rng-tools/rng-tools/0001-If-the-libc-is-lacking-argp-use-libargp.patch [new file with mode: 0644]
meta/recipes-support/rng-tools/rng-tools/0002-Add-argument-to-control-the-libargp-dependency.patch [new file with mode: 0644]
meta/recipes-support/rng-tools/rng-tools_5.bb