alsalib.mk (901B)
1 TARG = alsalib 2 3 <$mkbuild/mk.common-noinst 4 5 alsalib:QV: 6 # disable tests. 7 printf "all:\n\ttrue\n\ninstall:\n\ttrue\n\n" > test/Makefile.in 8 # 9 rm -f src/compat/hsearch_r.c 10 touch src/compat/hsearch_r.c 11 sed -i 's,#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE),#if 0,' include/global.h 12 # 13 CC="$CC -static" ./configure \ 14 --build="${TOOLCHAIN_TRIPLET}" \ 15 --host="${HOST_TOOLCHAIN_TRIPLET}" \ 16 --prefix="$PREFIX" \ 17 --mandir="$ROOT/share/man" \ 18 --disable-shared \ 19 --disable-python \ 20 --disable-old-symbols \ 21 --without-versioned \ 22 --disable-aload \ 23 --disable-alisp \ 24 --enable-static 25 # install lib for use as a dependency. 26 make -j$nprocs install \ 27 V="1" LDFLAGS="-all-static $LDFLAGS" DESTDIR=`pwd`/lib 28 # remove .la files for now ? 29 find `pwd`/lib -iname "*.la" -exec rm {} \; 30 31 install:QV: 32 make -j$nprocs install \ 33 V="1" LDFLAGS="-all-static $LDFLAGS" DESTDIR="$ROOT"