2021-11-05 00:24:31 +08:00
|
|
|
|
{{ include('../packages/binutils/README.md') }}
|
2021-05-05 20:22:10 +08:00
|
|
|
|
|
|
|
|
|
## Подготовка
|
|
|
|
|
|
2022-03-10 15:43:16 +08:00
|
|
|
|
Исправьте ошибку связанную с поставкой устаревшей версии `libtool` вместе с `Binutils`:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sed '6009s/$add_dir//' -i ltmain.sh
|
|
|
|
|
```
|
|
|
|
|
|
2021-10-01 20:12:25 +08:00
|
|
|
|
Пакет Binutils требует использовать отдельную директорию для сборки. Создайте её:
|
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 \
|
2021-06-26 20:02:42 +08:00
|
|
|
|
--enable-64-bit-bfd
|
2021-05-05 20:22:10 +08:00
|
|
|
|
```
|
|
|
|
|
|
2021-07-03 14:19:20 +08:00
|
|
|
|
### Для multilib
|
2021-05-05 20:22:10 +08:00
|
|
|
|
|
2021-06-26 20:02:42 +08:00
|
|
|
|
Добавьте параметр `--enable-multilib`
|
2021-05-05 20:22:10 +08:00
|
|
|
|
|
|
|
|
|
## Сборка
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
make
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Установка
|
|
|
|
|
|
|
|
|
|
```bash
|
2022-03-10 15:43:16 +08:00
|
|
|
|
make DESTDIR=$LIN install
|
2021-05-05 20:22:10 +08:00
|
|
|
|
```
|