|
Re: multi part library?: msg#00079gnu.libtool.general
On Wed, 24 Mar 2004 06:09:22 +0100, Ralph Schleicher wrote: > In my projects, libA1_la_LIBADD = ../B/libB.la works as > expected by you. I'm using libtool 1.5 on Linux, HP-UX, > Solaris, and Windows (MinGW). that will dynamicaly link to libB, ldd libA1.so will show it uses libB.so. I don't want that. The inidividual parts used to create libA1.so should not be visible. Sure, I could put all parts in one big directory, but I don't want that. It's cleaner to split the parts into several directories. Also I don't want to reference C files in other directories in the SOURCES line (which might work, too). what I want is similar to the linux kernel: - in every directory compile all files, create an ar file. - at the end link all ar files to one big library. In commands: cd B/ gcc -fPIC ... -o fileB.lo fileB.c ... ar c libB.al *.lo cd ../A1 gcc -fPIC .. -o fileA1.lo fileA1.c ... ar c libA1.al *.lo gcc -shared ../libB.al libA1.al -o libA1.so that will create one shared libary libA1. only the one big lib is visible, it has no dependencies on other libraries. Is there any way I can do that with automake/libtool? Thanks for your help. Regards, Andreas |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: no serial number?: 00079, Gary V . Vaughan |
|---|---|
| Next by Date: | Get cheap v i a g r a: 00079, Dominique Gates |
| Previous by Thread: | Re: multi part library?i: 00079, Ralph Schleicher |
| Next by Thread: | Re: multi part library?: 00079, Ralph Schleicher |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |