[Spread-users] make error
Theo Schlossnagle
jesus at omniti.com
Mon Jul 12 09:48:43 EDT 2004
Jonathan Stanton wrote:
>In your make line add
>"-L /path_to_directory_containing_libspread"
>before the "-lspread". That adds the path to the compilers list of library
>locations.
>
>
Additionally, on Linux you will have runtime linking errors is you do
not specify a runtime library path. If it installed shared libraries
(which it does by default), you will link with those and have trouble
finding them at runtime if you don't specify a runtime ld path.
So, in addition to -L/path_to_libs you want -Wl,-rpath=/path_to_libs
Alternatively, if you trust the directory containing the spread
libraries you can add the directory name to /etc/ld.so.conf and run
/sbin/ldconfig. Then any every program on the system will look in that
directory to resolve dynamic library dependencies.
--
// Theo Schlossnagle
// Principal Engineer -- http://www.omniti.com/~jesus/
// Postal Engine -- http://www.postalengine.com/
// Ecelerity: fastest MTA on Earth
More information about the Spread-users
mailing list