mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
execline: add static build option.
Similar to the one in the runit template. Closes: #24255 [via git-merge-pr]
This commit is contained in:
parent
f795a5ac04
commit
9a6e7db4cb
1 changed files with 7 additions and 0 deletions
|
@ -17,6 +17,13 @@ checksum=a24c76f097ff44fe50b63b89bcde5d6ba9a481aecddbe88ee01b0e5a7b314556
|
||||||
|
|
||||||
CFLAGS="-fPIC"
|
CFLAGS="-fPIC"
|
||||||
|
|
||||||
|
build_options="static"
|
||||||
|
|
||||||
|
if [ "$build_option_static" ]; then
|
||||||
|
CFLAGS+=" -static"
|
||||||
|
LDFLAGS+=" -static"
|
||||||
|
fi
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl) makedepends+=" nsss-devel" configure_args+=" --enable-nsss" ;;
|
*-musl) makedepends+=" nsss-devel" configure_args+=" --enable-nsss" ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Reference in a new issue