mirror of
https://github.com/flatcar/scripts.git
synced 2026-03-06 14:01:07 +01:00
HACK: sys-libs/glibc: Enable selinux even when cross-compiling
Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
parent
bde16be60f
commit
0f825c7de7
@ -1038,24 +1038,6 @@ glibc_do_configure() {
|
||||
|
||||
myconf+=( --enable-kernel=${MIN_KERN_VER} )
|
||||
|
||||
# Since SELinux support is only required for nscd, only enable it if:
|
||||
# 1. USE selinux
|
||||
# 2. only for the primary ABI on multilib systems
|
||||
# 3. Not a crosscompile
|
||||
if ! is_crosscompile && use selinux ; then
|
||||
if use multilib ; then
|
||||
if is_final_abi ; then
|
||||
myconf+=( --with-selinux )
|
||||
else
|
||||
myconf+=( --without-selinux )
|
||||
fi
|
||||
else
|
||||
myconf+=( --with-selinux )
|
||||
fi
|
||||
else
|
||||
myconf+=( --without-selinux )
|
||||
fi
|
||||
|
||||
# Force a few tests where we always know the answer but
|
||||
# configure is incapable of finding it.
|
||||
if is_crosscompile ; then
|
||||
@ -1065,6 +1047,7 @@ glibc_do_configure() {
|
||||
fi
|
||||
|
||||
myconf+=(
|
||||
$(use_with selinux)
|
||||
--disable-werror
|
||||
--enable-bind-now
|
||||
--enable-fortify-source
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user