This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Rename pwait for LynxOS


> Why is libc's pwait() getting pulled in at all?  If libiberty is
> providing one, there's no reason for libc's pwait() to be needed.

Well, the two pwait's are identical only in name.  They have different
prototypes and different functionalities otherwise.  For the actual
error, see the bottom of
http://gcc.gnu.org/ml/gcc-patches/2004-08/msg01182.html.

And pwait is packaged with system into one member of libc.a.  The
definiton of system is included because of tlink.o.

The other hack I can think of is to take care of this whole thing in
GCC.  That is to somehow tell GCC that when building for LynxOS it
should use waitpid instead of pwait.  For example only rename pwait
inside GCC to let's say gcc_pwait and then provide a LynxOS-specific
module under config and a corresponding x-lynx file for the makefile
fragment.  What do you think?

Adam


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]