I'm using the current cvs libtool on aix 4.3 with gcc and I ran into a
couple of problems.

   ./libtool --mode=link gcc -g -o libfoo.la \
      -rpath /usr/local/lib -version-info 4:0:1 foo.lo

ends up running

   gcc -shared -o .libs/libfoo.so.3.1.0 foo.o -Wl,-bexpall \
     -Wl,-bnoentry ${wl}-berok

I think the literal ${wl} might be too much quoting or not enough
evaling of $allow_undefined_flag.  (And glancing at libtool.m4, the
same might apply on osf[345].)

With that smoothed over, it goes on to

   (cd .libs && rm -f libfoo.so.3 && ln -s libfoo.so.3.1.0 libfoo.so.3)
   (cd .libs && rm -f libfoo.a && ln -s libfoo.so.3.1.0 libfoo.a)
   ar cru .libs/libfoo.a  foo.o

which provokes an error

   ar: 0707-108 File .libs/libfoo.a is not an archive file.

I see that $library_names_spec includes $libname.a.  Does this mean
it's not possible to simultaneously build a shared and static library?
If so, perhaps it could be an error at configure time to try to enable
both.

_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to