On Wed, Dec 31, 2003 at 01:45:42PM -0800, Stas Bekman wrote:
> i.e. -R hardcodes the path to the libs. And -L is getting completely
> ignored?

    -L is the link-time search path.  It's used.
    -R is the run-time search path.  This is stored in the executable
       or shared library.

> Can you please post me the complete build log? I want to see how APR.so was
> linked. Thanks

LD_RUN_PATH="/export/apache2_dev/lib:/usr/lib" cc  -G -L/usr/local/lib -R/usr/lo
cal/lib -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib APR.o -xO3 -L/usr/loc
al/lib -R/usr/local/lib  -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -o .
./../../blib/arch/Apache2/auto/APR/APR.so   -L/export/apache2_dev/lib -lapr-0 -l
sendfile -lrt -lm -lsocket -lnsl -lresolv -lpthread -ldl -L/export/apache2_dev/l
ib -laprutil-0 -lexpat

    Here's the problem:

    LD_RUN_PATH is getting overridden by the specified -R path.
    The -R specified is from the perl config.

    So either LD_RUN_PATH has to be set up to include all -R values,
    and the -R(s) removed from the link command line.

    Or -R has to be added with the appropriate path rather than
    using LD_RUN_PATH.

    Or I have to change my perl build to remove any specified -R
    values, check *all* my perl module builds to make sure they work
    afterwards.

    -- Brad

--
   -- Brad Lanam      [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to