I almost forgot. This is on Solaris 8 using libtool 2.4.3 Herb
---------- Forwarded message ---------- From: Herb Hrowal <[EMAIL PROTECTED]> Date: Wed, 29 Dec 2004 17:35:56 -0800 Subject: Reordering the command line To: [email protected] I'm trying to use libtool to compile and link my program. I don't care if most of the libraries I link to are static or dynamic except 1. I need to link to the static version of the library. My command looks like this: libtool --mode=link gcc -static <all the object files> -la -lb -lc -Wl,-Bstatic -ld -Wl,-Bdynamic -le -lf Obviously I need to link to libd.a and not libd.so. Anyway, libtool reorders the command line to look like this: gcc <all the object files> -Wl,-Bstatic -Wl,-Bdynamic -la -lb -lc -ld -le -lf As a result the wrong library is linked in. I know I can specify the library by including it, but I need this to build on several different machines each with the library in a different location. My question is why does libtool find it necessary to reorder things for me? Herb _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool
