[adtools] Re: Bringing back the possibility to change the default CRT in the specs file
- From: Andrija Antonijevic <antony@xxxxxxxxxxxxxxxxx>
- To: adtools@xxxxxxxxxxxxx
- Date: Wed, 10 May 2006 01:47:03 +0200 (Central Europe Daylight Time)
On 10-May-2006, Nicolas Mendoza wrote:
On Wed, 10 May 2006 00:54:06 +0200, Andrija Antonijevic
<antony@xxxxxxxxxxxxxxxxx> wrote:
...
So, I am going to drop the -newlib switch since making it work with the
current code is more trouble than it's worth. It has been marked deprecated
for a while now (the specs of the latest OS4 SDK has it removed) and the
user will now get an error report that -newlib is obsolete and that
-mcrt=newlib should be used instead. There are no other problems with
Gunther's changes that I know of.
I was just relaying concerns from Jörg Ströhmayer, i haven't been able to
verify it, but I would think he knew what he was talking about.
I am not saying you did anything wrong, the mistake was all mine.
If there is
no problem, could you add a newlib specs file too and put it somewhere that
is easy to interchange the clib2 one?
There doesn't exist a clib2 specs file since GCC 4, unlike GCC 3, doesn't
generate them during the build process.
One of the changes I am going to commit in a few days (once the netinclude
issue has been discussed) contains the switch to newlib as the default CRT so
there is not really much need for that, anyway.
If someone needs to generate a specs file for GCC 4.0.2 or earlier where
newlib is the default CRT:
- The specs file should be in GCC:lib/gcc/ppc-amigaos/<gcc-version>/specs. If
it isn't there, it can be generated with "gcc -dumpspecs > path_above".
Replace GCC: with /usr/local/amiga/ and gcc with ppc-amigaos-gcc for cross
compilers.
- Edit the specs file in an editor which doesn't break long lines: find
*cpp_amiga_default:, *link_amiga_default:, *startfile_amiga_default: and
*endfile_amiga_default: (they are on consecutive paragraphs) and replace all
occurrences of clib2 with newlib.
Andrija
Other related posts: