2021-05-05 20:22:10 +08:00
|
|
|
|
<package-info :package="package" ></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>
|
|
|
|
|
|
|
|
|
|
## Подготовка
|
|
|
|
|
|
2021-05-05 20:29:22 +08:00
|
|
|
|
В документации пакета {{package.name}} рекомендуется использовать отдельную директорию для сборки:
|
2021-05-05 20:22:10 +08:00
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
mkdir -v build
|
|
|
|
|
cd build
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Настройка
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
../configure \
|
|
|
|
|
--prefix=/usr \
|
|
|
|
|
--build=$(../config.guess) \
|
|
|
|
|
--host=$LIN_TGT \
|
|
|
|
|
--disable-nls \
|
|
|
|
|
--enable-shared \
|
|
|
|
|
--disable-werror \
|
|
|
|
|
--enable-64-bit-bfd
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Для MultiLib
|
|
|
|
|
|
|
|
|
|
Добавьте параметр ``--enable-multilib``
|
|
|
|
|
|
|
|
|
|
## Сборка
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
make
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Установка
|
|
|
|
|
|
|
|
|
|
```bash
|
2021-05-05 20:23:57 +08:00
|
|
|
|
make DESTDIR=$LIN install -j1
|
2021-05-05 20:22:10 +08:00
|
|
|
|
install -vm755 libctf/.libs/libctf.so.0.0.0 $LIN/usr/lib
|
|
|
|
|
```
|