libtool
[Top][All Lists]
Advanced

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

Installing convenience libraries


From: Nick Hudson
Subject: Installing convenience libraries
Date: Thu, 26 Apr 2001 15:20:12 +0100

Is there any reason why I shouldn't be able to install a convience
library. For example

$ libtool --mode=compile cc -c dummy.c -o dummy.o
cc -c dummy.c  -fPIC -DPIC -o .libs/dummy.o
cc -c dummy.c -o dummy.o >/dev/null 2>&1
$
$ libtool --mode=link cc -o libconv.la dummy.lo
ar cru .libs/libconv.a .libs/dummy.o
ranlib .libs/libconv.a
creating libconv.la
(cd .libs && rm -f libconv.la && ln -s ../libconv.la libconv.la)
$
$ libtool --mode=link cc -o libconv.la dummy.lo
rm -fr  .libs/libconv.a
ar cru .libs/libconv.a .libs/dummy.o
ranlib .libs/libconv.a
creating libconv.la
(cd .libs && rm -f libconv.la && ln -s ../libconv.la libconv.la)
$
$ libtool --mode=install cp libconv.la /tmp
cp .libs/libconv.lai /tmp/libconv.la
cp: .libs/libconv.lai: No such file or directory

The reason seems to be the last condition in the following code (see
around line 3846 in ltmain.in)

# Only create the output if not a dry run.
if test -z "$run"; then
  for installed in no yes; do
    if test "$installed" = yes; then
      if test -z "$install_libdir"; then
        break
      fi


What I'd like is a archive of -fPIC compiled code.

Nick
-- 
aka address@hidden, address@hidden



reply via email to

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