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:
Adam Duskett 2020-04-07 13:53:05 -07:00 committed by William Roberts
parent 28768cee5e
commit aa40067b7b
1 changed files with 1 additions and 1 deletions

View File

@ -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)