perlquestion
adamk
I'm building a <a href="http://strawberryperl.com/">Perl distribution</a>, and having some trouble with building Perl modules that link to C libraries.<br>
<br>
Different modules seem to use a variety of different methods to build/define the include path that will ultimately be provided to gcc.<br>
<br>
For example "$ENV{INCLUDE}", "perl Makefile.PL INC=-I..." and "$Config{libpth}". And some Makefile.PL do their own stuff to locate include paths beyond these.<br>
<br>
Unfortunately, many of them use one method and ignore the others, some overwrite one with the other, and I can't find one way of providing the include path to the modules in a way that all modules can handle correctly.<br>
<br>
Now, I'm ok with talking to authors or taking over modules and converting them to support the correct way, but I have no idea what that is.<br>
<br>
What is the "correct" way to provide the include paths via CPAN.pm such that all modules in a recursive install will receive and understand the include path to use for finding libs?