[prev in list] [next in list] [prev in thread] [next in thread] 

List:       spread-users
Subject:    Re: [Spread-users] make error
From:       Theo Schlossnagle <jesus () omniti ! com>
Date:       2004-07-12 13:48:43
Message-ID: 40F296BB.4090001 () omniti ! com
[Download RAW message or body]

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


_______________________________________________
Spread-users mailing list
Spread-users@lists.spread.org
http://lists.spread.org/mailman/listinfo/spread-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic