如何重新编译 Ubuntu 工具链?

如何重新编译 Ubuntu 工具链?

在哪里可以找到您在 Ubuntu Toolchain 4.1/4.7/4.9/等的构建服务器上使用的环境描述和构建选项?

问候。

答案1

我使用以下包和存储库进行重建。

您需要这些包:-

    - "build-essential"
    - "fakeroot"
    - "dpkg-dev"
    - "python-software-properties"
    - "software-properties-common"
    - "rsync"
    - "ubuntu-keyring"
    - "ubuntu-extras-keyring"
    - "debian-keyring"
    - "debian-ports-archive-keyring"
    - "debian-archive-keyring"
    - "emdebian-archive-keyring"
    - "ubuntu-cloudimage-keyring"
    - "ubuntu-cloud-keyring"

您应该使用那些存储库:

- "deb http://archive.ubuntu.com/ubuntu precise main restricted universe"
- "deb-src http://archive.ubuntu.com/ubuntu precise main restricted universe"
- "deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe"
- "deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe"

然后重新编译:

apt-get build-dep -y gcc-4.9-multilib
apt-get source -y gcc-4.9-multilib

dpkg-source -x gcc-4.9_4.9.2-0ubuntu1~12.04.dsc
cd gcc-4.9-4.9.2
dpkg-buildpackage -rfakeroot -b

相关内容