Mail Archives: djgpp/2013/09/02/10:51:44
On 09/02/2013 12:32 PM, RoBoard Lab wrote:
> 於 2013/8/31 上午 01:36, DJ Delorie 提到:
>> There are RPMs for a linux-to-djgpp cross compiler, perhaps the
>> solution for you is to use that as a base to build native cross
>> compilers for each platform?
>
> We are trying Andris Pavenis's packages
> (http://ap1.pp.fi/djgpp/index.html) and success to build djcrx 2.04 and
> Binutils 2.19 under Cygwin.
>
> We failed to build gcc 4.3.2 last week; it seems to be due to the
> unmatched version of autoconf, and we are now building gcc again. If it
> works, we will try gcc 4.8.1 and Binutils 2.22 later. :)
That is the reason why I pack Autoconf, Automake, GMP, MPFR and MPC
into the source RPM and use static linking with GMP, MPFR and MPC for
building cross-compiler (GCC and all 3 mentioned libraries have GPL3 license,
so static linking does not cause problems as far as I understand).
As the result the cross-compiler RPM packages are usable for several
Linux distributions. The last builds were under CentOS 6.X. Earlier
I used CentOS 5.X for that. RPMs are tested in current Fedora versions and
works OK.
One can extract script fragments from SPEC file if the build is done in
a different way (not rpmbuild)
Andris
- Raw text -