selinux/libselinux/utils
Christian Göttsche ffa73128ea libselinux/utils: drop requirement to combine compiling and linking
The extra dependency of sefcontext_compile on its object file causes the
compile and link step to be separated.
During the link step the CFLAGS are not passed, which might contain
optimization or sanitizer flags.

Reorder the LDLIBS requirements to avoid the symbol 'pcre_fullinfo'
being unresolvable at link time.

Current behavior:

    gcc-11 **custom CFLAGS** -I../include -D_GNU_SOURCE     -c -o sefcontext_compile.o sefcontext_compile.c
    gcc-11 -L../src  sefcontext_compile.o ../src/regex.o  -lselinux  -lpcre ../src/libselinux.a -lsepol -o sefcontext_compile

Changed:

    gcc-11 **custom CFLAGS** -I../include -D_GNU_SOURCE    -L../src  sefcontext_compile.c  -lselinux  ../src/libselinux.a -lpcre -lsepol -o sefcontext_compile

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
2021-09-22 12:31:53 +02:00
..
.gitignore libselinux: Save digest of all partial matches for directory 2019-07-27 10:39:24 +02:00
avcstat.c libselinux: avcstat: use standard length modifier for unsigned long long 2021-05-18 10:06:22 +02:00
compute_av.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
compute_create.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
compute_member.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
compute_relabel.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
getconlist.c libselinux: getconlist: free memory on multiple level arguments 2021-05-18 10:06:22 +02:00
getdefaultcon.c libselinux: getdefaultcon: free memory on multiple same arguments 2021-05-18 10:06:22 +02:00
getenforce.c libselinux: use -W and -Werror in utils 2011-12-05 16:14:17 -05:00
getfilecon.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
getpidcon.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
getsebool.c libselinux: getsebool: always free names 2017-04-12 14:46:02 -04:00
getseuser.c libselinux/utils/getseuser.c: fix build with gcc 4.8 2021-07-03 16:00:38 +02:00
Makefile libselinux/utils: drop requirement to combine compiling and linking 2021-09-22 12:31:53 +02:00
matchpathcon.c libselinux: silence -Wextra-semi-stmt warning 2021-07-06 11:08:11 -04:00
policyvers.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
sefcontext_compile.c libselinux: sefcontext_compile: mark local variable static 2021-05-18 10:06:22 +02:00
selabel_digest.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
selabel_get_digests_all_partial_matches.c libselinux: selabel_get_digests_all_partial_matches: free memory after FTS_D block 2021-05-18 10:06:22 +02:00
selabel_lookup_best_match.c libselinux: silence -Wextra-semi-stmt warning 2021-07-06 11:08:11 -04:00
selabel_lookup.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
selabel_partial_match.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
selinux_check_access.c libselinux/utils: add noreturn attribute to selinux_check_access's usage 2017-05-05 13:07:04 -04:00
selinux_check_securetty_context.c libselinux: include errno.h instead of sys/errno.h 2017-01-09 16:00:22 -05:00
selinuxenabled.c
selinuxexeccon.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
setenforce.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
setfilecon.c Global replace exit(0) with more readable exit(EXIT_SUCCESS) 2019-05-15 17:34:43 -07:00
togglesebool.c libselinux/utils: fix all the noreturn errors 2016-11-01 17:29:49 -04:00
validatetrans.c Add security_validatetrans support 2019-04-09 06:51:02 -07:00