Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jdavidb (1361)

  (email not shown publicly)

J. David Blackstone has a Bachelor of Science in Computer Science and Engineering and nine years of experience at a wireless telecommunications company, where he learned Perl and never looked back. J. David has an advantage in that he works really hard, he has a passion for writing good software, and he knows many of the world's best Perl programmers.

Journal of jdavidb (1361)

Friday August 11, 2006
02:34 PM


[ #30605 ]

Because I'm doing something evil (using an compiled on another system rather than one compiled for this system), I do NOT want PERL_DL_NONLAZY to be set when I make test. What's the easiest way to change this, which I hope is simply a parameter in my Makefile.PL? :) Do I need to switch to Module::Build?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I suppose you could overload the test_via_script and test_via_harness methods. See the code of ExtUtils::MM_Unix for the originals. (untested)
  • So you have your 05_test.t script.

    But there's no reason that has to do the actual work.

    An alternative might be to use it as a proxy script.

        local $ENV{PERL_DL_NONLAZY} = 0;

        exec( "... the real test script ... " );

    It's a but evil, but it might be good enough for you.
  • It turns out that this is not because I was doing something evil. It's because Oracle did something evil. Or maybe because I did something unsupported. Oracle's instant client 10.2 doesn't appear to be linked exactly right on Solaris 5.8; with PERL_DL_NONLAZY set when DynaLoad tries to load, it tries to get a linked symbol out of Solaris's librt that does not exist at this point.

    J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers