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:
commit
14e036a0c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user