diff options
author | Cem Keylan <cem@ckyln.com> | 2022-06-24 16:16:31 +0200 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2022-06-24 16:16:31 +0200 |
commit | d7f79349e1b1bae8a4bd848977f7e25045ba71bf (patch) | |
tree | 4d02e95dca29a5b1a0605d0f20357bbb8bae284a /core/xz | |
parent | d227526501971a4526f0235516eefb71e92a18e3 (diff) | |
download | repository-d7f79349e1b1bae8a4bd848977f7e25045ba71bf.tar.gz |
xz: link binaries statically
Diffstat (limited to 'core/xz')
-rwxr-xr-x | core/xz/build | 12 | ||||
-rw-r--r-- | core/xz/version | 2 |
2 files changed, 13 insertions, 1 deletions
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 |