selinux/libselinux
James Carter af543f1ba7 libselinux, libsepol: Add CFLAGS and LDFLAGS to Makefile checks
In libselinux there is an availability check for strlcpy() and
in both libselinux and libsepol there are availability checks for
reallocarray() in the src Makfiles. CFLAGS and LDFLAGS are needed
for cross-compiling, but, unfortunately, the default CFLAGS cause
all of these availability checks to fail to compile because of
compilationerrors (rather than just the function not being available).

Add CFLAGS and LDFLAGS to the availibility checks, update the checks
so that a compilation error will only happen if the function being
checked for is not available, and make checks for the same function
the same in both libselinux and libsepol.

Suggested-by: Jordan Williams <jordan@jwillikers.com>
Suggested-by: Winfried Dobbe <winfried_mb2@xmsnet.nl>
Signed-off-by: James Carter <jwcart2@gmail.com>
2024-03-20 14:18:06 -04:00
..
include libselinux: constify selabel_cmp(3) parameters 2023-10-11 14:59:19 -04:00
man libselinux/man: sync selinux_check_securetty_context(3) 2024-01-25 12:51:03 -05:00
src libselinux, libsepol: Add CFLAGS and LDFLAGS to Makefile checks 2024-03-20 14:18:06 -04:00
utils libselinux/utils/selabel_digest: pass BASEONLY only for file backend 2024-03-20 14:17:34 -04:00
LICENSE initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile libselinux: use PCRE2 by default 2021-12-09 11:07:00 -05:00
VERSION Update VERSIONs to 3.6 for release. 2023-12-13 15:46:22 +01:00