如何编译gcc自身的阿!?
发表于 : 2009-10-02 12:50
我想问的是,如果我们是用gcc去编译的话,但是在最开始的时候,gcc有时怎么被编译成程序的呢?
PS:我去gcc的官网只下载到了源代码,没有二进制程序阿!~
请不要说APT之类的。。。谢谢
PS:我去gcc的官网只下载到了源代码,没有二进制程序阿!~
请不要说APT之类的。。。谢谢

没明白CGer 写了:是在.configure的时候配置吗?
代码: 全选
`old-binutils' + `old-gcc' + `old-glibc' -> `new-binutils'
`new-binutils' + `old-gcc' + `old-glibc' -> `new-gcc'
`new-binutils' + `new-gcc' + `old-glibc' -> `new-glibc'
`new-binutils' + `new-gcc' + `new-glibc' -> `third-binutils'
`third-binutils' + `new-gcc' + `new-glibc' -> `third-gcc'
`third-binutils' + `third-gcc' + `new-glibc' -> `third-glibc'
`third-binutils' + `third-gcc' + `third-glibc' -> `last-binutils'
`last-binutils' + `third-gcc' + `new-glibc' -> `last-gcc'
`last-binutils' + `last-gcc' + `new-glibc' -> `last-glibc'
etc...
学习了tusooa 写了:lfs的编译过程:代码: 全选
`old-binutils' + `old-gcc' + `old-glibc' -> `new-binutils' `new-binutils' + `old-gcc' + `old-glibc' -> `new-gcc' `new-binutils' + `new-gcc' + `old-glibc' -> `new-glibc' `new-binutils' + `new-gcc' + `new-glibc' -> `third-binutils' `third-binutils' + `new-gcc' + `new-glibc' -> `third-gcc' `third-binutils' + `third-gcc' + `new-glibc' -> `third-glibc' `third-binutils' + `third-gcc' + `third-glibc' -> `last-binutils' `last-binutils' + `third-gcc' + `new-glibc' -> `last-gcc' `last-binutils' + `last-gcc' + `new-glibc' -> `last-glibc' etc...