libselinux utils: override LD{FLAGS, LIBS} for in Makefile
diff mbox

Message ID
State Not Applicable
Headers show

Commit Message

Jason Zaman June 18, 2017, 7:41 a.m. UTC
the utils dir link to 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.


Signed-off-by: Jason Zaman <>
 libselinux/utils/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff mbox

diff --git a/libselinux/utils/Makefile b/libselinux/utils/Makefile
index 5f5368a8..474ee95b 100644
--- a/libselinux/utils/Makefile
+++ b/libselinux/utils/Makefile
@@ -46,8 +46,8 @@  override LDFLAGS += -L../../libsepol/src -undefined dynamic_lookup
 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)