The story is there's no general answer. If LDDLFLAGS is overridden on the command line (LDDLFLAGS=-R/yada/yada) the value replaces what would ordinarily be there, because it overrides the value set by the hash passed to WriteMakefile in Makefile.PL. That is, WriteMakefile examines @ARGV for variable=value pairs and takes what it finds as overrides. (Observed behavior; I can't find the source code.)

To extend LDDLFLAGS, one would have to know how Makefile.PL sets it. I don't know of any way to do that except by examining the sources. (Afaik there's no MakeMaker option to print variable values, although I suppose -qp could be passed to make(1) to do that instead.)

Peeking inside Makefile.PL, one can easily see that LDDLFLAGS is set to the contanenation "-L$Sybase/lib" and $Config::Config{lddlflags}. So the hack would be something like: perl Makefile.PL LDDLFLAGS=$(perl -e'use Config; print qq("-L$ENV{SYBASE}/lib $Config{lddlflags} -R/yada")') which I guess is OK.

Extending your suggestion, I added a new --other_dlflags option to Makefile.PL and sent a patch to Michael Peppler. Perhaps 1.10 will be a little easier to use. :-)


In reply to Re^2: adding RPATH to Sybase.so by jklowden
in thread adding RPATH to Sybase.so by jklowden

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.