From d7f79349e1b1bae8a4bd848977f7e25045ba71bf Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 24 Jun 2022 16:16:31 +0200 Subject: xz: link binaries statically --- core/xz/build | 12 ++++++++++++ core/xz/version | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'core/xz') diff --git a/core/xz/build b/core/xz/build index 6daf22f8..606cc351 100755 --- a/core/xz/build +++ b/core/xz/build @@ -5,3 +5,15 @@ make make DESTDIR="$1" install + +# Link the binaries statically +cd src +rm -f xz/xz lzmainfo/lzmainfo xzdec/lzmadec xzdec/xzdec + +make LDFLAGS=-all-static -C xz +make LDFLAGS=-all-static -C lzmainfo +make LDFLAGS=-all-static -C xzdec + +for bin in xz/xz lzmainfo/lzmainfo xzdec/lzmadec xzdec/xzdec; do + clinst -m755 "$bin" "$1/usr/bin/${bin##*/}" +done diff --git a/core/xz/version b/core/xz/version index a1938eb9..dde85f89 100644 --- a/core/xz/version +++ b/core/xz/version @@ -1 +1 @@ -5.2.5 3 +5.2.5 4 -- cgit v1.2.3