Mail Archives: djgpp-workers/2001/11/19/16:49:52
Hello.
Eli Zaretskii wrote:
> That's because mcount.c cannot be compiled with -pg. Recompile
> mcount.c manually without -pg -a, put it into libc.a, then rebuild the
> distribution, and it will work (at least it does for me with
> djlsr203.zip).
Yes! Thanks to you and Hans for pointing out the problem in the problem.
;) I assumed gcc would add some stand-alone magic to the objects, but I
guess it's not suprising it needs some help from the C library to do the
timing.
> If this does solve the problem, could you please fix
> src/libc/crt0/makefile to DTRT?
This does fix the problem. I'm not quite sure how to DTRT. How about this:
Presumably we want to compile mcount.c with the same options as the rest
of the code, but without -pg and -a. So should I add a new command to
src/makefile.inc that defines a new XGCC - XGCC_NO_PG - to be used for
mcount.c? This would use a version of src/gcc.opt passed through sed to
remove -pg and -a. (Requiring sed to build library sources must be OK,
since we use sed in src/libc/crt0/makefile.)
Thanks, bye, Rich =]
--
Richard Dawe
http://www.phekda.freeserve.co.uk/richdawe/
- Raw text -