Re: Help building a C library
Michael G Schwern <[email protected]> Sat, 13 Feb 2010 06:23:26 -0800
| Newsgroups | gmane.comp.lang.perl.modules.module-build |
|---|---|
| Message-ID | <[email protected]> |
Alberto Simões wrote:
> Hello.
>
> On 12/02/2010 22:26, David Golden wrote:
>> I have very little experience what what you describe, but I know the
>> M::B API reasonable well. :-)
>
> I think c_source will not be enough, but I will try to find out.
>
> A quick question: where can I add code (perl code) to be run during the
> build process (and not when running Build.PL for the first time?)
Write an ACTION_code() method in your subclass. Be sure to call
SUPER::ACTION_code.
If you're doing a C build, and c_source isn't enough, using ExtUtils::CBuilder
(accessable via $build->cbuilder) will give you a lot of control and portability.
--
The past has a vote, but not a veto.
-- Mordecai M. Kaplan