libselinux: build sefcontext_compile with static libselinux
sefcontext_compile depends on libselinux internals, so it might as well use static libselinux. Hide read_spec_entries as this is not intended as a public interface for shared library users. Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
parent
4ed298c652
commit
e889148494
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ static inline int read_spec_entry(char **entry, char **ptr)
|
|||
*
|
||||
* This function calls read_spec_entry() to do the actual string processing.
|
||||
*/
|
||||
int read_spec_entries(char *line_buf, int num_args, ...)
|
||||
int hidden read_spec_entries(char *line_buf, int num_args, ...)
|
||||
{
|
||||
char **spec_entry, *buf_p;
|
||||
int len, rc, items;
|
||||
|
|
|
@ -28,7 +28,7 @@ LDLIBS += -L../src -lselinux -L$(LIBDIR)
|
|||
|
||||
TARGETS=$(patsubst %.c,%,$(wildcard *.c))
|
||||
|
||||
sefcontext_compile: LDLIBS += -lpcre
|
||||
sefcontext_compile: LDLIBS += -lpcre ../src/libselinux.a
|
||||
|
||||
ifeq ($(DISABLE_AVC),y)
|
||||
UNUSED_TARGETS+=compute_av compute_create compute_member compute_relabel
|
||||
|
|
Loading…
Reference in a new issue