[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: creating shared libraries
From: |
txie |
Subject: |
Re: creating shared libraries |
Date: |
Mon, 5 Nov 2007 17:03:36 -0500 (EST) |
User-agent: |
SquirrelMail/1.4.8-4.0.1.el4 |
> * address@hidden wrote on Mon, Oct 29, 2007 at 11:02:40PM CET:
>>
>> I still dont know how to remove the library files with version number,
>> such as libfoo.so.0.0.0. May you show me a simple example?
>
> Without Automake, just plain commands:
>
> : ${CC=cc}
> echo 'int f() { return 0; }' > a.c
> libtool --mode=compile $CC -c a.c
> libtool --mode=link $CC -o liba.la a.lo -rpath /whereever -avoid-version
>
> With Automake:
>
> lib_LTLIBRARIES = liba.la
> liba_la_SOURCES = a.lo
> liba_la_LDFLAGS = -avoid-version
>
>> How to remove the libtool .lo files during the process of 'make'?
>> Thanks.
>
> Afterwards with "make clean". You don't want to remove them during the
> build process, because they are needed by libtool for linking (creating
> the library).
>
> Hope that helps.
>
> Cheers,
> Ralf
>
Ralf,
Thanks a lot. I used the second method, and it works. But '.la' file still
exists after 'make install'. I am wondering if we should keep this file,
if not, how to remove it?
Regards,
Ting