develooper Front page | perl.perl5.porters | Postings from April 2007

Re: g++ on FreeBSD

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
April 10, 2007 12:33
Subject:
Re: g++ on FreeBSD
Message ID:
Pine.LNX.4.62.0704101531050.19397@fractal.phys.lafayette.edu
On Tue, 10 Apr 2007, Nicholas Clark wrote:

> On Tue, Apr 10, 2007 at 01:49:03PM -0400, Andy Dougherty wrote:
> > On Tue, 10 Apr 2007, Nicholas Clark wrote:
> 
> 
> > We at least ought to be able to try.  We just need to convince the hints 
> > file to let us.  I don't like hints files that prevent me from trying 
> > things. (I hadn't realized you were trying to build with -Dusethreads, so 
> > I hadn't patched that branch.)
> 
> Fair point.
> 
> I didn't actually apply that patch because I'd worked out where that probe
> code below was:
> 
> But it does like this it if you change it to
> 
>     extern "C" void *atof(); void *(*(p()))() { return &atof; } 
>     int main() { if(p()) return(0); else return(1); }

Ooh.  Clever.

Keep on going!

-- 
    Andy Dougherty		doughera@lafayette.edu

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About