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.
In reply to Re: Setting library path in Makefile
by Fletch
in thread Setting library path in Makefile
by bangor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |