T
Thomas
I want to integrate my module Foo.pm which relies on Inline::C into an
existing Perl distribution. Luckily, I can add directories and files to
perl/site/lib and perl/site/lib/auto as I please and give the complete
Perl directory tree to the user to run it. (I *don't* want my module to
become a part of any official distribution or CPAN, that's not what this
is about.)
However, I still set libraries I depend on as absolute paths in the LIBS
setting of my use Inline statement (..., 'LIBS => c:/foo/bar.lib', ...).
Unfortunately, I can't keep doing that. I can't influence where the perl
directory tree will be installed (could be c:\perl, d:\perl). What am I
supposed to use as LIBS value? Where should the .lib files (or .so under
Unix) go?
What's the standard way of distributing a module like mine? I have seen
the Math::Simple example in
http://search.cpan.org/~ingy/Inline-0.44/Inline.pod#Writing_Modules_with_Inline
However, I haven't followed that way (calling h2xs -PAXn Math::Simple
and extending that). I have two Windows .lib files I depend on and the
DLL and other files Inline created in
/build/Foo_a3d7/blib/arch/auto/Foo_a3d7 Everything works fine with
absolute paths, but the exact configuration is my (last) obstacle. BTW,
I also depend on the files Inline built to remain unchanged -- the
user's system does not have a compiler or make to do the compilation.
Thanks in advance!
existing Perl distribution. Luckily, I can add directories and files to
perl/site/lib and perl/site/lib/auto as I please and give the complete
Perl directory tree to the user to run it. (I *don't* want my module to
become a part of any official distribution or CPAN, that's not what this
is about.)
However, I still set libraries I depend on as absolute paths in the LIBS
setting of my use Inline statement (..., 'LIBS => c:/foo/bar.lib', ...).
Unfortunately, I can't keep doing that. I can't influence where the perl
directory tree will be installed (could be c:\perl, d:\perl). What am I
supposed to use as LIBS value? Where should the .lib files (or .so under
Unix) go?
What's the standard way of distributing a module like mine? I have seen
the Math::Simple example in
http://search.cpan.org/~ingy/Inline-0.44/Inline.pod#Writing_Modules_with_Inline
However, I haven't followed that way (calling h2xs -PAXn Math::Simple
and extending that). I have two Windows .lib files I depend on and the
DLL and other files Inline created in
/build/Foo_a3d7/blib/arch/auto/Foo_a3d7 Everything works fine with
absolute paths, but the exact configuration is my (last) obstacle. BTW,
I also depend on the files Inline built to remain unchanged -- the
user's system does not have a compiler or make to do the compilation.
Thanks in advance!