mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-24 23:32:18 +08:00
868070f7b5
Add files via upload
49 lines
874 B
Markdown
49 lines
874 B
Markdown
<package-info :package="package" showsbu></package-info>
|
||
|
||
<script>
|
||
new Vue({
|
||
el: '#main',
|
||
data: { package: {} },
|
||
mounted: function () {
|
||
this.getPackage('m4');
|
||
},
|
||
methods: {
|
||
getPackage: function(name) {
|
||
getPackage(name)
|
||
.then(response => this.package = response);
|
||
},
|
||
}
|
||
})
|
||
</script>
|
||
|
||
## Сборка
|
||
|
||
Во первых примените исправление для новых версий glibc:
|
||
|
||
```bash
|
||
sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
|
||
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
|
||
```
|
||
|
||
Запустите скрипт `configure`:
|
||
|
||
```bash
|
||
./configure --prefix=/usr \
|
||
--host=$LIN_TGT \
|
||
--build=$(build-aux/config.guess)
|
||
```
|
||
|
||
Соберите пакет:
|
||
|
||
```bash
|
||
make
|
||
```
|
||
|
||
## Установка
|
||
|
||
Для установки m4 выполните:
|
||
|
||
```bash
|
||
make DESTDIR=$LIN install
|
||
```
|