From 43062856c573d9696764e423373f8943a3747b35 Mon Sep 17 00:00:00 2001 From: John Regan Date: Thu, 18 Jan 2018 20:35:59 -0600 Subject: [PATCH] add musl-fts as dependency --- README.md | 3 +++ cctools/configure.ac | 6 ++++++ cctools/libstuff/Makefile.am | 2 ++ 3 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 730d5398..12407fb3 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,9 @@ Mac OS X, iOS, watchOS (untested) and tvOS (untested) SDKs with .tdb stubs (>= Xcode 7) require the TAPI library to be installed. => https://github.com/tpoechtrager/apple-libtapi +musl-libc based systems require the musl-fts library to be installed. +=> https://github.com/pullmoll/musl-fts + Optional, but recommended: `llvm-devel` (For Link Time Optimization Support) diff --git a/cctools/configure.ac b/cctools/configure.ac index d5a2cdba..c20984e6 100644 --- a/cctools/configure.ac +++ b/cctools/configure.ac @@ -314,6 +314,12 @@ LDFLAGS=$ORIGLDFLAGS CHECK_LLVM LDFLAGS="$LDFLAGS $LTO_RPATH" +### Check for libfts (musl) ### + +AC_CHECK_LIB([fts],[fts_open],[ + AC_CHECK_HEADERS([fts.h], [FTS_LIB=-lfts])], []) +AC_SUBST(FTS_LIB) + ### Check for libxar ### if test "x$LLVM_CONFIG" != "xno"; then diff --git a/cctools/libstuff/Makefile.am b/cctools/libstuff/Makefile.am index 0219b9ce..639a7121 100644 --- a/cctools/libstuff/Makefile.am +++ b/cctools/libstuff/Makefile.am @@ -2,6 +2,8 @@ noinst_LTLIBRARIES = libstuff.la libstuff_la_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/foreign -D__DARWIN_UNIX03 $(WARNINGS) $(LTO_DEF) -DPROGRAM_PREFIX="\"$(PROGRAM_PREFIX)\"" $(ENDIAN_FLAG) +libstuff_la_LDFLAGS = $(FTS_LIB) + libstuff_la_SOURCES = \ allocate.c \ apple_version.c \