execline: add static build option.

Similar to the one in the runit template.

Closes: #24255 [via git-merge-pr]
This commit is contained in:
Érico Rolim 2020-08-13 02:54:07 -03:00 committed by Andrew J. Hesford
parent f795a5ac04
commit 9a6e7db4cb

View file

@ -17,6 +17,13 @@ checksum=a24c76f097ff44fe50b63b89bcde5d6ba9a481aecddbe88ee01b0e5a7b314556
CFLAGS="-fPIC"
build_options="static"
if [ "$build_option_static" ]; then
CFLAGS+=" -static"
LDFLAGS+=" -static"
fi
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" nsss-devel" configure_args+=" --enable-nsss" ;;
esac