libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AIX 4.3 and cvs libtool


From: Kevin Ryde
Subject: AIX 4.3 and cvs libtool
Date: 21 Nov 2000 06:58:12 +1000
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.5

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]