Fix building against musl and uClibc libc libraries.
Currently, the src/Makefile provides the FTS_LDLIBS when building against musl or uClibc. However, this is missing from utils/Makefile, which causes linking to fail. Add the FTS_LDLIBS variable to the LDLIBS variable in utils/Makefile to fix compiling against uClibc and musl. Signed-off-by: Adam Duskett <Aduskett@gmail.com>
This commit is contained in:
parent
28768cee5e
commit
aa40067b7b
|
@ -45,7 +45,7 @@ endif
|
||||||
|
|
||||||
override CFLAGS += -I../include -D_GNU_SOURCE $(DISABLE_FLAGS) $(PCRE_CFLAGS)
|
override CFLAGS += -I../include -D_GNU_SOURCE $(DISABLE_FLAGS) $(PCRE_CFLAGS)
|
||||||
override LDFLAGS += -L../src
|
override LDFLAGS += -L../src
|
||||||
override LDLIBS += -lselinux
|
override LDLIBS += -lselinux $(FTS_LDLIBS)
|
||||||
PCRE_LDLIBS ?= -lpcre
|
PCRE_LDLIBS ?= -lpcre
|
||||||
|
|
||||||
ifeq ($(ANDROID_HOST),y)
|
ifeq ($(ANDROID_HOST),y)
|
||||||
|
|
Loading…
Reference in New Issue