Skip to content

Commit

Permalink
add musl-fts as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jprjr committed Jan 19, 2018
1 parent 9021456 commit 4306285
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions cctools/configure.ac
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions cctools/libstuff/Makefile.am
Expand Up @@ -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 \
Expand Down

0 comments on commit 4306285

Please sign in to comment.