logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: How to run a C filter at build time?: msg#00020

Subject: Re: How to run a C filter at build time?
On Wed, Aug 31, 2005 at 01:43:09PM -0700, John Gardiner Myers wrote:
> lockdefs needs to be in C as it has to obtain information from the 
> system include files.

You can get these from .ph files which constants in C header files into
something Perl can get at.  See h2ph which generates them.

Unfortunately h2ph is not run by default so they may not be available for
your system.

Are you sure you can't the includes get them from Fcntl.pm or POSIX.pm?

Otherwise the simplest thing to do is use ExtUtils::CBuilder to do the
compilation in your Makefile.PL rather than try to get MakeMaker do it.


-- 
Michael G Schwern     schwern@xxxxxxxxx     http://www.pobox.com/~schwern
Ahh email, my old friend.  Do you know that revenge is a dish that is best 
served cold?  And it is very cold on the Internet!




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>