28 lines
682 B
Bash
28 lines
682 B
Bash
|
#!/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
|