I believe you should be able to build DBD::Sybase against either a static or dynamic sybase library (the choice is yours), irrespective of whether perl's "libperl" is libperl.a or libperl.so.

That's correct, both with respect to libperl(.so|.a) not being of relevance here as well as with respect to static vs. dynamic linking of the sybase libs.

I only mentioned statically linking the sybase libs, because I was under the impression the OP's problem in part revolved around not wanting external dependencies ("...for those hosts of ours that do not have the sybase libraries installed."). You can of course also link against dynamic sybase libs (which would be the "normal" thing to do), but then the respective .so files would need to be available at runtime when Perl's DynaLoader loads the Sybase.so XS extension via dlopen().

Similar circumstances hold for libperl.a vs libperl.so,  In other words, the static version is only ever needed at build time. Once a static perl binary (or some other executable that statically embeds a Perl interpreter) has been built, the code has become part of the binary, and libperl.a is no longer needed at runtime.  Not so with libperl.so, though, if you have a dynamically linked perl binary.  (I'm sure you know, but...)


In reply to Re^3: Building Perl with static and dynamic perllib libs by Eliya
in thread Building Perl with static and dynamic perllib libs by bergbrains

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.