Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Setting library path in Makefile

by Fletch (Bishop)
on Apr 30, 2019 at 12:58 UTC ( [id://1233185]=note: print w/replies, xml ) Need Help??


in reply to Setting library path in Makefile

The exact syntax is going to depend on your compiler and/or linker, but you're going to want to have it shim in /usr/local/lib to the dynamic library search path it bakes into the .so file. What you want in libs is going to be along the lines of "-R/usr/local/lib -L/usr/local/lib -lspf2" or something close. If you're using gcc in place of ld you may need "-Wl,-R/usr/local/lib" instead.

Alternately you could stick /usr/local/lib in your /etc/ld.so.conf but be aware that alters the shared library search path for everything on that system.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1233185]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-23 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found