Recipe for compiling binutils & gcc together?

后端 未结 3 1906
长情又很酷
长情又很酷 2020-12-12 14:48

According the the gcc build instructions you can build binutils concurrently with building gcc (as well as gmp,mpc,etc).

Here\'s what that page says :

3条回答
  •  伪装坚强ぢ
    2020-12-12 15:17

    I always build everything separately. After you've built and installed binutils, gcc should build fine as long as you give each configure script the same --target and --prefix options:

    binutils:

    $ ./configure --target=XYZ --prefix=/abc/def
    $ make all install
    

    then add the path (if necessary):

    $ export PATH="$PATH:/abc/def/bin"
    

    and build gcc:

    $ ./configure --target=XYZ --prefix=/abc/def
    $ make all-gcc install-gcc
    

    Then build your libc and the rest of gcc if necessary (maybe a debugger, too!).

提交回复
热议问题