mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-24 06:52:20 +08:00
Update _sidebar.md
Add files via upload
This commit is contained in:
parent
f26a47c269
commit
868070f7b5
@ -32,6 +32,7 @@
|
||||
- [Заголовки ядра Linux](build-temp-system/linux-headers.md)
|
||||
- [Glibc](build-temp-system/glibc)
|
||||
- [Libstdc++ pass-1](build-temp-system/libstdc)
|
||||
- [m4](build-temp-system/m4.md)
|
||||
|
||||
- [**Вспомогательные материалы**](additional/additional)
|
||||
- [Установка программ из исходных кодов в Linux](additional/src-compiling)
|
||||
|
48
docs/build-temp-system/m4.md
Normal file
48
docs/build-temp-system/m4.md
Normal file
@ -0,0 +1,48 @@
|
||||
<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
|
||||
```
|
Loading…
Reference in New Issue
Block a user