Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: [PATCH] Conditionally include nlist.h in solib-legacy.c
       [not found] <1010320030437.ZM8757@ocotillo.lan>
@ 2001-03-23  8:13 ` Andrew Cagney
  2001-03-23  8:40   ` Kevin Buettner
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cagney @ 2001-03-23  8:13 UTC (permalink / raw)
  To: Kevin Buettner; +Cc: gdb-patches

Kevin,

Looking back at this.  I don't know that solib-legacy should ever be
appearing in the list of TDEPFILES.  Given it can only work in native
builds, I think it should only be included in the NATDEPFILES.

I suspect this was the real reason for the compile problems.

	Andrew


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Conditionally include nlist.h in solib-legacy.c
  2001-03-23  8:13 ` [PATCH] Conditionally include nlist.h in solib-legacy.c Andrew Cagney
@ 2001-03-23  8:40   ` Kevin Buettner
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Buettner @ 2001-03-23  8:40 UTC (permalink / raw)
  To: Andrew Cagney, Kevin Buettner; +Cc: gdb-patches

On Mar 23, 11:13am, Andrew Cagney wrote:

> Looking back at this.  I don't know that solib-legacy should ever be
> appearing in the list of TDEPFILES.  Given it can only work in native
> builds, I think it should only be included in the NATDEPFILES.

You're right.

I put it in the TDEPFILES list for two reasons:

  1) Laziness.  (It was easier to just search for solib-svr4.o and add
     it to each line containing this file.)

  2) To avoid link errors.

My concern regarding #2 was as follows:  If you put solib-legacy.o in
host A's NATDEPFILES and then you configure an A cross B debugger where
B doesn't have solib-svr4.o in its TDEPFILES, you'll end up with a link
error when you're done.

I've just recently learned, however, that this won't happen since
NATDEPFILES is commented out when building cross debuggers.

Since problem #2 is disposed of, all I need to do is overcome #1.
(I'll try to get around to looking at it over the weekend.)

> I suspect this was the real reason for the compile problems.

Probably so.  However, I also think that the solib-legacy code is
better off using the autoconf supplied feature tests.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-03-23  8:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1010320030437.ZM8757@ocotillo.lan>
2001-03-23  8:13 ` [PATCH] Conditionally include nlist.h in solib-legacy.c Andrew Cagney
2001-03-23  8:40   ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox