This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Handle ld.so.conf the same in ld as in ldconfig
On Mon, Oct 11, 2004 at 04:13:06PM +0200, Jakub Jelinek wrote:
> On Tue, Oct 05, 2004 at 11:12:28PM +0930, Alan Modra wrote:
> > > + /* Normally this would use getline(3), but we need to be portable. */
> >
> > This code is only used on native linux systems, so why not use getline?
>
> This is what I have checked in. If portability needs arise for this,
> we can always go back to the non-getline code.
Sorry for not catching this sooner...
if [ "x${USE_LIBPATH}" = xyes ] ; then
...
case ${target} in
*-*-linux-gnu*)
...
while (getline (&line, &linelen, f) != -1)
That's not native-only code. It's used for natives, almost-natives
(NATIVE=yes), and sysrooted builds from any host.
--
Daniel Jacobowitz