|
libtool 1.5 adds unwanted objects to shared library: msg#00092gnu.libtool.general
Calling libtool with the following: /bin/sh ../libtool --mode=link g++ -g -O2 -o libGridExProEDLL.la \ -rpath /prjbob.1/bene/CVS/wxGridEx/Linux/lib \ -rdynamic libGridExProEDLL_la-AFLR3.o \ .... generates the following command: g++ -shared -nostdlib /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crti.o \ /usr/lib/gcc-lib/i386-redhat-linux/2.96/crtbeginS.o \ .libs/libGridExProEDLL_la-AFLR3Page.o \ .... -L/usr/lib/gcc-lib/i386-redhat-linux/2.96 \ -L/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../.. \ -lstdc++ -lm -lc -lgcc /usr/lib/gcc-lib/i386-redhat-linux/2.96/crtendS.o \ /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crtn.o \ -Wl,-soname -Wl,libGridExProEDLL.so.0 -o .libs/libGridExProEDLL.so.0.0.0 Problem is I did not specify the crti.o, crtbeginS.o, crtn.o, crtendS.o, -lstdc++, -lc, and -lgcc to be included, and causes the shared object not to load into a third party application. If I run the same g++ command with those items removed, the shared library is correct. How do I tell libtool that I only want only the libraries that I specify to be included in the final shared object?? Thanks, Will -- ============================================================================= William J. Bene W.J.BENE@xxxxxxxxxxxxx Mail Stop 125 ANALYTICAL MECHANICS ASSOCIATES 15 Langley Boulevard Assigned to Data Analysis & Imaging Branch NASA Langley Research Center Building 1268, Room 1057 Hampton, VA 23681-2199 Phone +1 757 864-2106 ============================================================================= |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | libtool on OpenBSD: 00092, Han Boetes |
|---|---|
| Next by Date: | Suppressing --whole-archive: 00092, Jim Fehlig |
| Previous by Thread: | libtool on OpenBSDi: 00092, Han Boetes |
| Next by Thread: | Suppressing --whole-archive: 00092, Jim Fehlig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |