This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mkstemp() support on target
- To: mike stump <mrs at windriver dot com>
- Subject: Re: mkstemp() support on target
- From: Florian Weimer <fw at deneb dot enyo dot de>
- Date: Sat, 10 Nov 2001 12:36:31 +0100
- Cc: gcc at gcc dot gnu dot org
- References: <200110201504.IAA04703@kankakee.wrs.com>
mike stump <mrs@windriver.com> writes:
>> Does an autoconf test already exist in GCC which tests whether the
>> target machine supports mkstemp() or not?
>
> Can you run grep mkstemp libiberty/*? That might answer your question.
Is -liberty linked with all target executables? I don't think so. In
addition, -liberty's mkstemps() is not thread safe. It's probably
best when I copy the routine from -liberty and tweak it a bit.
> If you want to know if it is availible for use on the target, can't
> you just nm libiberty and be done with it?
Is -liberty build for the target? I thought it's only used by the
compiler itself (that's why it's build on the host only).