Results 1 to 1 of 1
Hi,
I am using openSUSE 11.0. I am trying to compile a software that requires, say, libxyz.a . But in /usr/lib, the same is installed as a shared library. So ...
- 11-02-2008 #1Just Joined!
- Join Date
- Oct 2008
- Location
- Bangalore, India
- Posts
- 12
Choosing between shared and AR libraries
Hi,
I am using openSUSE 11.0. I am trying to compile a software that requires, say, libxyz.a . But in /usr/lib, the same is installed as a shared library. So i downloaded the source code for 'xyz', compiled it and got the required libxyz.a . I installed it in /usr/local/xyz. Now in order to compile the original software, how do i instruct the c compiler gcc to access only the libxyz.a and not the corresponding shared library? I cannot uninstall the shared library as many applications depend on it.
Can i do it in this way via the Makefile:
CC=gcc /usr/local/xyz/libxyz.a
or, adding a line like this INC_LIB=/usr/local/xyz/libxyz.a and making the corresponding changes ?
Will these options override the shared libs in /usr/lib ?
Thanks!


Reply With Quote