coreutils: fix compilation for when selinux is present
authorMarek Behún <kabel@blackhole.sk>
Thu, 24 Sep 2020 19:35:12 +0000 (21:35 +0200)
committerMarek Behún <kabel@blackhole.sk>
Fri, 25 Sep 2020 03:27:12 +0000 (05:27 +0200)
commit70f53c2bfaa3a5362d25d4ca5e8aa470ebafe82d
tree1040237ff27ac117bffc992666e886bb98decde1
parentcf78a529112e101a47bd3bbcc30795ea89433672
coreutils: fix compilation for when selinux is present

According to https://bugs.gentoo.org/301782 coreutils does not respect
--without-selinux correctly when libselinux.so is present on the target
system (in the staging dir).

This solves a weird issue of some coreutils programs not building (for
example stdbuf), because the configure script uses -Werror to determine
whether __attribute__((constructor)) is respected, but -Werror causes
compilation to fail because of a warning about redefinition of
HAVE_SELINUX_SELINUX_H macro.

Signed-off-by: Marek Behún <kabel@blackhole.sk>
utils/coreutils/Makefile