Got it. Thanks! Ralf Wildenhues wrote: > * Liviu Nicoara wrote on Tue, May 30, 2006 at 07:49:38PM CEST: >> /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o libfoo.la >> -rpath /usr/local/lib -release 0.0.2 foo.lo bar.o >> mkdir .libs >> >> *** Warning: Linking the shared library libfoo.la against the non-libtool >> *** objects bar.o is not portable! > >> However, in a shared library build: > >> /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o libfoo.la >> -rpath /usr/local/lib -release 0.0.2 foo.lo bar.o >> >> *** Warning: Linking the shared library libfoo.la against the non-libtool >> *** objects bar.o is not portable! > > Easy: just change configure.ac to read: > ## Using only bar.s > MY_EXTRA_SOURCES='bar.lo' > > as libtool hides PIC/non-PIC objects behind the .lo pseudo objects. > > Cheers, > Ralf >
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool