Hi all! I'm absolutely new at extending perl, so please be patient 
with my question.

I have some absolutely great C code whose functionality (hardware 
control) I'd love to bring to Perl. It has its own very elaborate 
Makefile, which I use to produce a C library. For my module, I 
wrote its Makefile.PL as: 

WriteMakefile(
        # the stuff that h2xs normally puts in

        'MYEXTLIB'      => 'src/my_lib$(LIB_EXT)'
);

sub MY::postamble {
'
$(MYEXTLIB):    src/Makefile
        cd src && make my_lib$(LIB_EXT)
';
}

would work. But when I test my new spiffy module, it complains
that the method call I made is an unresolved symbol.

So in summary, how does one link a .a file that's not made by
Makefile.PL for the C code?

I apologize for the vagueness of the question, but I'm think
that more details would only obscure the nature of the problem.

- m.

Reply via email to