buildscripts/libdaemon.sh

28 lines
682 B
Bash
Raw Permalink Normal View History

2023-12-03 23:10:57 +01:00
#!/bin/bash
git clone https://github.com/Distrotech/libdaemon
set -e
cd libdaemon
git reset HEAD --hard
git checkout distrotech-libdaemon-0.14
export CFLAGS="-I$PREFIX/include -O3"
export CPPFLAGS="-I$PREFIX/include -O3"
export LDFLAGS="-L$PREFIX/lib"
export LIBS="-lrt"
export AUTOCONFIG_POSTFIX_EXTRAS+=\
ac_cv_func_getpgrp_void=no \
ac_cv_func_setpgrp_void=yes \
ac_cv_func_memcmp_working=yes \
rb_cv_binary_elf=no \
rb_cv_negative_time_t=no
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
./configure --host="$xHOST" --prefix="$PREFIX"
make
make install