* Ethan Mallove wrote on Wed, Nov 10, 2010 at 09:02:18PM CET: > On Wed, Nov/10/2010 07:59:38PM, Ralf Wildenhues wrote: > > * ethan.mall...@oracle.com wrote on Wed, Nov 10, 2010 at 07:48:14PM CET: > > > Libtool seems to get confused about where libgcc_s is, e.g., > > > > > > $ /bin/sh ../../../libtool --tag=CXX --mode=link icpc -lgcc_s foo.c -o > > > a.out > > > libtool: link: icpc foo.c -o a.out -lgcc_s > > > ld: skipping incompatible > > > /usr/lib/gcc/x86_64-redhat-linux/3.4.6//libgcc_s.so when searching for > > > -lgcc_s > > > ld: cannot find -lgcc_s > > > > > > If I help it out with my own -L, it works: > > > > > > $ /bin/sh ../../../libtool --tag=CXX --mode=link icpc > > > -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/32 -lgcc_s foo.c -o a.out > > > libtool: link: icpc foo.c -o a.out > > > -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/32 -lgcc_s > > > > > > $ ../../../libtool --version > > > ltmain.sh (GNU libtool) 2.2.6b > > > > I think the first question to ask is why are you passing -lgcc_s in the > > first place? > > I don't know. Does libtoolize add -lgcc_s to postdeps? The above is > a stripped down link line that happens when I build the Open MPI trunk > using Intel 11.0 compilers.
postdeps are only expanded by 'libtool', but you posted a libtool command line that already included -lgcc_s, IOW, that particular argument was not added by libtool but in the Makefile already. You need to find out which Makefile macro set this, and since presumably the macro was @substituted@ by some configure script, find the configure code that set it. Otherwise I cannot say more. Cheers, Ralf _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool