This evening the process of cross compiling the latest source of gcc failed, because the build systems automatically decided to build fancy stuff which required a working C library (maybe only headers, I don’t care). I couldn’t provide a C library and I wasn’t willing to, because I just don’t need one for my setup.
The workaround is quite easy: Instead of making the default “all” target, I only built “all-gcc” and “all-target-libgcc”. To install the built targets, make “install-gcc” and “install-target-libgcc”. Easy, isn’t it? :)
Example:
$ ./configure --target="$TARGET" --prefix=/tmp/cross --disable-shared --disable-nls --enable-languages=c [...] $ make all-gcc all-target-libgcc [...] $ make install-gcc install-target-libgcc
binutils: 2.21; gcc: 4.6.1
0 comments:
Post a Comment