Skip to contentSkip to conversation

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

PATCH New Jason Zaman 1 participant 1 message Jun 18, 2017 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 libselinux/utils/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
libselinux/utils/Makefile +2 -2
index 5f5368a8..474ee95b 100644
@@ -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)
Signature · 1 line
2.13.0