[companion-discuss] [gnu-sol-discuss] setting PATHs for headers/libs - GNU Autoconf, Automake
Bart Smaalders
bart.smaalders at Sun.COM
Mon Jul 16 11:30:49 PDT 2007
Joao Miguel Ferreira wrote:
> Hello all,
>
> I'm a beginner in Solaris (coming from Linux) :).
>
> In my project we maintain code with the help of GNU Autoconf, Automake
> and Libtool, in Linux, HP-UX and Solaris.
>
> I have 1 or 2 problems in Solaris :(
>
> a) How do I tell Solaris to search for header files
> in /usr/local/include when I compile my test application (that needs
> headers of my lib) ?
Same as with Linux:
-I/usr/local/include
>
> b) How do I tell Solaris to search for libs in /usr/local/lib (my
> project is basically some libs, but I have to run test applications that
> load the libs)... in Linux I add it to ld.so.conf... but I don't know
> where Solaris keeps the dynamic loader configs
>
The right way to do this is to specify:
-L path-to-library-at-link-time -R path-to-library-at-runtime
on the link line.
Often both pathes are the same, of course....
- Bart
--
Bart Smaalders Solaris Kernel Performance
barts at cyber.eng.sun.com http://blogs.sun.com/barts
More information about the companion-discuss
mailing list