static=0
|
|
|
|
for x in upx gzip sed kbd mplayer pciutils grep coreutils libgli lvp gawk findutils eject xfree86 flex ; do
|
|
[ "${pkg}" == "${x}" ] && static=1
|
|
done
|
|
|
|
if [ ${static} -eq 1 ] ; then
|
|
echo_status "Building this package statically for LVP"
|
|
var_append GCC_WRAPPER_APPEND " " "-static"
|
|
fi
|
|
|
|
if [ "${pkg}" == "bash" ] ; then
|
|
echo_status "Building this package statically for LVP"
|
|
var_append extraconfopt " " "--enable-static-link"
|
|
fi
|
|
|
|
if [ "${pkg}" == "util-linux" ] ; then
|
|
echo_status "Building this package statically for LVP"
|
|
hook_add preconf 4 "export LDFLAGS=-static"
|
|
hook_add postinstall 4 "unset LDFLAGS"
|
|
fi
|
|
|
|
if [ "${pkg}" == "modutils" ] ; then
|
|
echo_status "Building this package statically for LVP"
|
|
var_append confopt " " "--enable-combined"
|
|
fi
|
|
|
|
if [ "${pkg}" == "mdadm" ] ; then
|
|
echo_status "Building this package statically for LVP"
|
|
var_append makeopt " " "LDFLAGS=-static"
|
|
var_append makeinstopt " " "LDFLAGS=-static"
|
|
fi
|
|
|
|
for x in mplayer freeglut ; do
|
|
if [ "${pkg}" == "${x}" ] ; then
|
|
echo_status "Building this package statically for LVP"
|
|
var_append confopt " " "--enable-static"
|
|
fi
|
|
done
|
|
|
|
install_init () {
|
|
echo_status "stub called: install_init ${@}"
|
|
}
|