in reply to Re: Link Net::SSLeay to custom-built OpenSSL
in thread Link Net::SSLeay to custom-built OpenSSL

Oh. That's it. Thanks!

I forgot that the gcc packaged in Solaris 10 doesn't do runpaths properly using the environment variable. It's only got /usr/sfw/lib showing in the runpath header.

If I want a proper runpath, I have to explicitly pass it in -R parameters to gcc.

Hmmm... I wonder what I do now. Can I change the gcc options? Makefile.PL seems to ignore LDFLAGS.

  • Comment on Re^2: Link Net::SSLeay to custom-built OpenSSL

Replies are listed 'Best First'.
Re^3: Link Net::SSLeay to custom-built OpenSSL
by Anonyrnous Monk (Hermit) on Feb 04, 2011 at 18:07 UTC
    Can I change the gcc options? Makefile.PL seems to ignore LDFLAGS.

    IIRC, you can say

    dynamic_lib => { OTHERLDFLAGS => '-R...' }

    (untested)

      Thanks again :-) My lazy secular nature made me do:
      mv Makefile Makefile.tmp nawk -v d=$OPENSSL_DIR ' /OTHERLDFLAGS =/ { print $0" -R "d"/lib" } ! +/OTHERLDFLAGS =/ { print $0 }' Makefile.tmp > Makefile