mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-23 22:42:26 +08:00
33 lines
718 B
Markdown
33 lines
718 B
Markdown
{{ include('../packages/xz/README.md') }}
|
|
|
|
## Настройка
|
|
|
|
```bash
|
|
./configure --prefix=/usr --host=$LIN_TGT \
|
|
--build=$(build-aux/config.guess) \
|
|
--disable-static \
|
|
--disable-doc
|
|
```
|
|
|
|
## Сборка
|
|
|
|
```bash
|
|
make
|
|
```
|
|
|
|
## Установка
|
|
|
|
```bash
|
|
make DESTDIR=$LIN install
|
|
```
|
|
|
|
## При раздельной структуре каталогов
|
|
|
|
Переместите часть файлов в нужные директории:
|
|
|
|
```bash
|
|
mv -v $LIN/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} $LIN/bin
|
|
mv -v $LIN/usr/lib/liblzma.so.* $LIN/lib
|
|
ln -svf ../../lib/$(readlink $LIN/usr/lib/liblzma.so) $LIN/usr/lib/liblzma.so
|
|
```
|