procps-ng: fix BR2_STATIC_LIBS=y build
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 7 Aug 2016 09:19:11 +0000 (11:19 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 9 Aug 2016 13:48:46 +0000 (15:48 +0200)
commit9bccca26fb9a18f1afd03dd30c63fcefe85e4d41
treeadace8f21105c73e0e26665f6d45ae558e206db4
parent5e9f965369370b8e2eee5c62f71272ca7570d2dd
procps-ng: fix BR2_STATIC_LIBS=y build

The procps-ng package currently fails to build on BR2_STATIC_LIBS=y
configurations. Indeed, by default NUMA support is enabled, and it
requires dlopen(). As hinted by the configure script, passing
--disable-numa allows to disable NUMA support.

However, once this is done, another issue pops up: dlopen() is also used
by the SELinux support. But even when SELinux support is disabled, the
procps-ng code incorrectly includes <dlfcn.h>. This is addressed by the
addition of a patch.

Fixes:

  http://autobuild.buildroot.net/results/b385bf435085728aece6323a5006ba9fa6631744/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/procps-ng/0003-ps-output.c-include-dlfcn.h-only-when-necessary.patch [new file with mode: 0644]
package/procps-ng/procps-ng.mk