From 8a4a0719a0002d99a521a0c4c111ed2d8f846791 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 4 Jan 2021 17:39:18 +0300 Subject: musl-fts: add Makefile --- extra/musl-fts/build | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'extra/musl-fts/build') 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 -- cgit v1.2.3