From bbfb68d5006d37449f46a1db3a15f5e029a56031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Thu, 13 Aug 2020 02:54:07 -0300 Subject: [PATCH] execline: add static build option. Similar to the one in the runit template. --- srcpkgs/execline/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/execline/template b/srcpkgs/execline/template index 2892bfcbef1..92c5df11259 100644 --- a/srcpkgs/execline/template +++ b/srcpkgs/execline/template @@ -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