From 68e0328f835c8b6c143d48e4517b1c48e12a20ac Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 14 Jan 2015 12:05:31 +0100 Subject: [PATCH] runit: add static option. --- srcpkgs/runit/template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srcpkgs/runit/template b/srcpkgs/runit/template index a1c6dda3115..14b4ced5024 100644 --- a/srcpkgs/runit/template +++ b/srcpkgs/runit/template @@ -1,7 +1,7 @@ # Template file for 'runit' pkgname=runit version=2.1.2 -revision=2 +revision=3 wrksrc="admin" short_desc="A UNIX init scheme with service supervision" maintainer="Juan RP " @@ -11,6 +11,12 @@ update_site="${homepage}install.html" distfiles="http://smarden.org/runit/runit-$version.tar.gz" checksum=6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18 +build_options="static" +if [ "$build_option_static" ]; then + CFLAGS+=" -static" + LDFLAGS+=" -static" +fi + do_build() { cd ${pkgname}-${version}/src