mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-11 13:26:01 +00:00
libselinux: enable linking to musl-fts
Musl libc does not include the fts(3) functions so need to link to the musl-fts library https://github.com/pullmoll/musl-fts Signed-off-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
parent
42f0376228
commit
ab0e27003e
@ -98,6 +98,8 @@ LD_SONAME_FLAGS=-install_name,$(LIBSO)
|
||||
endif
|
||||
|
||||
PCRE_LDLIBS ?= -lpcre
|
||||
# override with -lfts when building on Musl libc to use fts-standalone
|
||||
FTS_LDLIBS ?=
|
||||
|
||||
override CFLAGS += -I../include -D_GNU_SOURCE $(DISABLE_FLAGS) $(PCRE_CFLAGS)
|
||||
|
||||
@ -149,7 +151,7 @@ $(LIBA): $(OBJS)
|
||||
$(RANLIB) $@
|
||||
|
||||
$(LIBSO): $(LOBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ $(PCRE_LDLIBS) -ldl -Wl,$(LD_SONAME_FLAGS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ $(PCRE_LDLIBS) $(FTS_LDLIBS) -ldl -Wl,$(LD_SONAME_FLAGS)
|
||||
ln -sf $@ $(TARGET)
|
||||
|
||||
$(LIBPC): $(LIBPC).in ../VERSION
|
||||
|
Loading…
Reference in New Issue
Block a user