[PATCH] Handle ld.so.conf the same in ld as in ldconfig

Daniel Jacobowitz drow@false.org
Mon Oct 11 14:28:00 GMT 2004


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



More information about the Binutils mailing list