libselinux utils: override LD{FLAGS, LIBS} for libselinux.so in Makefile

the utils dir link to libselinux.so which was just built, if LDFLAGS or
LDLIBS were specificed on the make commandline then the search path is
not appended. Add the override directive to fix this.

Gentoo-Bug: https://bugs.gentoo.org/621762

Signed-off-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
Jason Zaman 2017-06-18 15:41:49 +08:00 committed by Stephen Smalley
parent 08d4b030ea
commit 297877ab88

View File

@ -46,8 +46,8 @@ override LDFLAGS += -L../../libsepol/src -undefined dynamic_lookup
endif
override CFLAGS += -I../include -D_GNU_SOURCE $(DISABLE_FLAGS) $(PCRE_CFLAGS)
LDFLAGS += -L../src
LDLIBS += -lselinux
override LDFLAGS += -L../src
override LDLIBS += -lselinux
PCRE_LDLIBS ?= -lpcre
ifeq ($(ANDROID_HOST),y)