From e88914849490c3fc17b0e5ed67387e47f2701d3c Mon Sep 17 00:00:00 2001 From: Stephen Smalley Date: Mon, 15 Jun 2015 15:25:42 -0400 Subject: [PATCH] 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 --- libselinux/src/label_support.c | 2 +- libselinux/utils/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libselinux/src/label_support.c b/libselinux/src/label_support.c index 7464f430..cf91dfa4 100644 --- a/libselinux/src/label_support.c +++ b/libselinux/src/label_support.c @@ -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; diff --git a/libselinux/utils/Makefile b/libselinux/utils/Makefile index 54995385..c36761de 100644 --- a/libselinux/utils/Makefile +++ b/libselinux/utils/Makefile @@ -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