diff options
author | Cem Keylan <cem@ckyln.com> | 2021-01-04 17:39:18 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-01-04 17:39:18 +0300 |
commit | 8a4a0719a0002d99a521a0c4c111ed2d8f846791 (patch) | |
tree | 3ed024e17701449f9a4afd3a8b89938430b2f0a5 /extra/musl-fts/build | |
parent | c6df9e2d238113bcf6ee2fc3b593a63c0d9e52bc (diff) | |
download | repository-8a4a0719a0002d99a521a0c4c111ed2d8f846791.tar.gz |
musl-fts: add Makefile
Diffstat (limited to 'extra/musl-fts/build')
-rwxr-xr-x | extra/musl-fts/build | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/extra/musl-fts/build b/extra/musl-fts/build index 51f62f67..431cc725 100755 --- a/extra/musl-fts/build +++ b/extra/musl-fts/build @@ -1,22 +1,4 @@ #!/bin/sh -e -# We don't want autotools just to build this tiny little library. -# We'll do it ourselves. -# -# All word splitting is intentional. -# shellcheck disable=2086 -export CFLAGS="$CFLAGS -DHAVE_CONFIG_H -I." -mkdir -p "$1/usr/lib" - -set -x - -"${CC:=cc}" $CFLAGS -c -o fts.o fts.c -"$CC" -shared -fPIC -DPIC fts.o $CFLAGS -Wl,-soname -Wl,libfts.so.0 -o "$1/usr/lib/libfts.so.0.0.0" -ar cru "$1/usr/lib/libfts.a" fts.o -ranlib "$1/usr/lib/libfts.a" - -ln -s libfts.so.0.0.0 "$1/usr/lib/libfts.so.0" -ln -s libfts.so.0 "$1/usr/lib/libfts.so" - -install -Dm644 fts.h "$1/usr/include/fts.h" -install -Dm644 musl-fts.pc "$1/usr/lib/pkgconfig/musl-fts.pc" +make +make DESTDIR="$1" PREFIX=/usr install |