mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-25 07:42:19 +08:00
82 lines
1.2 KiB
Markdown
82 lines
1.2 KiB
Markdown
<package-info :package="package" showsbu2></package-info>
|
|
|
|
<script>
|
|
new Vue({
|
|
el: '#main',
|
|
data: { package: {} },
|
|
mounted: function () {
|
|
this.getPackage('libffi');
|
|
},
|
|
methods: {
|
|
getPackage: function(name) {
|
|
getPackage(name)
|
|
.then(response => this.package = response);
|
|
},
|
|
}
|
|
})
|
|
</script>
|
|
|
|
## Настройка
|
|
|
|
?> Libffi как и GMP оптимизируется под определенный процессор
|
|
|
|
```bash
|
|
./configure --prefix=/usr --disable-static --with-gcc-arch=native
|
|
```
|
|
|
|
## Сборка
|
|
|
|
|
|
```bash
|
|
make
|
|
```
|
|
## Тестирование
|
|
|
|
```bash
|
|
make check
|
|
```
|
|
|
|
## Установка
|
|
|
|
```bash
|
|
make install
|
|
```
|
|
|
|
## Для multilib
|
|
|
|
### Очистка
|
|
|
|
```bash
|
|
make distclean
|
|
```
|
|
|
|
### Настройка
|
|
|
|
```bash
|
|
CC="gcc -m32" CXX="g++ -m32" ./configure \
|
|
--prefix=/usr \
|
|
--disable-static \
|
|
--libdir=/usr/lib32 \
|
|
--with-gcc-arch=i686 \
|
|
--host=i686-pc-linux-gnu
|
|
```
|
|
|
|
### Сборка
|
|
|
|
```bash
|
|
make
|
|
```
|
|
|
|
### Установка
|
|
|
|
```bash
|
|
make DESTDIR=$PWD/DESTDIR install
|
|
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
|
rm -rf DESTDIR
|
|
```
|
|
|
|
## Установленные файлы
|
|
|
|
Библиотеки: libffi.so
|
|
|