I am trying to do some profiling (using gprof) and I have to hack
src/Makefile by hand every time to do it, due to the linking tricks used
there. I'm finally getting annoyed enough about this that I'm looking
around for a reason for the current behavior. The relevant changelog
entries appear to be in ChangeLog.1:
1998-03-28 SL Baur <steve(a)altair.xemacs.org>
* s/linux.h: For simplicity, do not use standard linking because
it is deadly with new GCC.
1997-06-09 Steven L Baur <steve(a)altair.xemacs.org>
* s/linux.h: Can't use ORDINARY_LINK in linux until usage of -lPW
is determined more sensibly.
Interestingly, some old mail archives show that Martin Buchholz tried to
change Linux to use ORDINARY_LINK on 1997-06-09, so Steve Baur didn't
wait long to change it back. Unfortunately, I don't see a message from
him explaining *why* he changed it back.
Can anyone shed any light on this? I hack src/Makefile to make it do
essentially what ORDINARY_LINKING would do (plus -pg, of course), and it
works for me with RedHat's "gcc 2.96". But then again, I don't know
what the issues are with "-lPW", either. There is a note about avoiding
it in s/linux.h, but that doesn't help me understand, unfortunately.
Thanks,
--
Jerry James
http://www.ittc.ku.edu/~james/