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
|
@ -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.
|
* 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;
|
char **spec_entry, *buf_p;
|
||||||
int len, rc, items;
|
int len, rc, items;
|
||||||
|
|
|
@ -28,7 +28,7 @@ LDLIBS += -L../src -lselinux -L$(LIBDIR)
|
||||||
|
|
||||||
TARGETS=$(patsubst %.c,%,$(wildcard *.c))
|
TARGETS=$(patsubst %.c,%,$(wildcard *.c))
|
||||||
|
|
||||||
sefcontext_compile: LDLIBS += -lpcre
|
sefcontext_compile: LDLIBS += -lpcre ../src/libselinux.a
|
||||||
|
|
||||||
ifeq ($(DISABLE_AVC),y)
|
ifeq ($(DISABLE_AVC),y)
|
||||||
UNUSED_TARGETS+=compute_av compute_create compute_member compute_relabel
|
UNUSED_TARGETS+=compute_av compute_create compute_member compute_relabel
|
||||||
|
|
Loading…
Reference in New Issue