This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Re: [PATCH] basename buffer gets spammed in `ld'


On Mon, Jul 09, 2001 at 08:19:20PM -0400, DJ Delorie wrote:
> 
> > I think libibery should check if the system's basename behaves
> > the same as the one in libibery before using the system one. I
> > can try to write a test for it.
> 
> Libiberty provides lbasename() for when you know you want a fixed set
> of semantics.  You can't test for functionality in libiberty, only for
> the presence or absense of a function (think "cross compiler").

It has been done all the time. For cross compile, just make a safer
choice. See

dnl AC_TRY_RUN(PROGRAM, [ACTION-IF-TRUE [, ACTION-IF-FALSE
dnl            [, ACTION-IF-CROSS-COMPILING]]])

I have been adding the missing ACTION-IF-CROSS-COMPILING to many
packacages.


H.J.


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