Mail Archives: djgpp/2000/03/14/08:07:56
On Tue, 14 Mar 2000, Rob Kramer wrote:
> Hi all,
>
> I want to make a linux-x-djgpp compiler of gcc-2.95.2 and bnu-2.9.5 but
> am confused what sources and patches I need.
>
> - Can I use gcc-2.95.2.tgz from gnu.org, or must I use gcc2952s.zip? Same
> for binutils..
It's enough to have gcc2952s.zip (however You can use gcc2952s2.zip and
original sources of gcc-2.95.2 and libg++ instead). Look DJGPP mailing
list archives for last days (I don't want to repeat I wrote so recently)
>
> - Do I have to patch the main sources with gcc2952s2.zip, or is this just
> for (cross)building the DOS-native compiler? I noticed the -mbnu210
> switch is patched in here, so I probably need this?
gcc2952s2.zip is for generating gcc2952s.zip from original sources
> - Do I still have to apply any patches to binutils (which was the case
> with bnu-2.9.1). For example, DJ's HowTo mentions a patch to
> gas/config.
>
The problem with bnu2951s.zip will be that ZIP archive does not preserve
correctly file attributes (execute permission is lost). So You have
chmod needed files (eg. chmod +x configure). After that there should be
no problems to build cross-binutils. Anyway I think that there should no
serious problems also with not patched binutils snapshots (no patches from
DJ's how-to needed then). So download recent snapshot from
sourceware.cygnus.com (or mirror site) and build cross-binutils.
I used such way also for native builds of binutils for rather long time
and didn't met serious problems.
> The 'bnu210' weak symbols support works fine now, I saw a nice
> improvement in executable size (STL-intensive code). Great work!
Andris
- Raw text -