2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

Merge pull request #74 from ehawkvu/static-xz

xz: build binaries statically
This commit is contained in:
Owen Rafferty 2022-07-07 16:45:10 -05:00 committed by GitHub
commit 14e036a0c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,3 +7,16 @@
make
make 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
cp "$bin" "$DESTDIR/usr/bin"
chmod 755 "$DESTDIR/usr/bin/${bin##*/}"
done