This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bizarre test for main in libm


On Thu, May 01, 2003 at 04:01:53PM -0500, Loren James Rittle wrote:
> In article <200305011038.h41AcJm15772@pc960.cambridge.arm.com> you write:
> >
> > Does anyone know why that test is there in the first place?
> 
> Mark, mentioned that the patch was sort-a-ugly.  Are there any systems
> where there is no -lm?  The above test would not link if -lm was not
> found.  Correct?

Right.  It might just be a semi-convenient way of getting -lm added to
LIBS if-and-only-if libm is available.  The theory, I think, is that if
libm is available at all, it's probably also required (for us).


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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