This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Re: jartool.c:539: undefined reference to `strdup'
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: PATCH: Re: jartool.c:539: undefined reference to `strdup'
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 03 May 2001 14:12:57 -0300
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200105031657.MAA03729@hiauly1.hia.nrc.ca>
On May 3, 2001, "John David Anglin" <dave@hiauly1.hia.nrc.ca> wrote:
> OK for branch and main?
I don't think so. strdup() is sometimes defined as a macro, and
sometimes it's declared to take a const char *. Better check for it
and define it only if it's not present, or go for libiberty, which I
think would be a better idea.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me