libtool
[Top][All Lists]
Advanced

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

DESTDIR installs


From: Philip Willoughby
Subject: DESTDIR installs
Date: Mon, 25 Nov 2002 15:37:27 +0000 (GMT)

I have the following in a Makefile.am:

pkglib_LTLIBRARIES=libapttlog.la
libapttlog_la_SOURCES=aptt/log/log.c
address@hidden@ -I$(top_srcdir)/src -I$(top_builddir)/src
address@hidden@

lib_LTLIBRARIES=libaptttest.la
libaptttest_la_SOURCES=aptt/test/test.c
libaptttest_la_LIBADD=libapttlog.la @LTLIBINTL@

If I run:

./configure [Configure args]
make
make install

everything installs OK, however, if I run:

./configure [Configure args]
make
make DESTDIR=/var/tmp/aptt-0.0.1-1-root/ install

which I need to work to build an rpm cleanly, I get:

/bin/sh ../mkinstalldirs /var/tmp/aptt-0.0.1-1-root/usr/lib
/bin/sh ../libtool --mode=install /usr/bin/install -c  libapttlog.la
/var/tmp/aptt-0.0.1-1-root/usr/lib/libapttlog.la
/usr/bin/install -c .libs/libapttlog.so.0.0.0
/var/tmp/aptt-0.0.1-1-root/usr/lib/libapttlog.so.0.0.0
(cd /var/tmp/aptt-0.0.1-1-root/usr/lib && rm -f libapttlog.so.0 && ln -s
libapttlog.so.0.0.0 libapttlog.so.0)
(cd /var/tmp/aptt-0.0.1-1-root/usr/lib && rm -f libapttlog.so && ln -s
libapttlog.so.0.0.0 libapttlog.so)
/usr/bin/install -c .libs/libapttlog.lai
/var/tmp/aptt-0.0.1-1-root/usr/lib/libapttlog.la
/usr/bin/install -c .libs/libapttlog.a
/var/tmp/aptt-0.0.1-1-root/usr/lib/libapttlog.a
ranlib /var/tmp/aptt-0.0.1-1-root/usr/lib/libapttlog.a
chmod 644 /var/tmp/aptt-0.0.1-1-root/usr/lib/libapttlog.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
 /bin/sh ../libtool --mode=install /usr/bin/install -c  libaptttest.la
/var/tmp/aptt-0.0.1-1-root/usr/lib/libaptttest.la
libtool: install: warning: relinking `libaptttest.la'
(cd /homes/pgw99/rpm-devel/BUILD/aptt-0.0.1/src; /bin/sh ../libtool
--mode=relink gcc -O2 -march=i586 -o libaptttest.la -rpath /usr/lib
aptt/test/test.lo libapttlog.la)
gcc -shared  aptt/test/test.lo  -L/usr/lib -lapttlog   -Wl,-soname
-Wl,libaptttest.so.0 -o .libs/libaptttest.so.0.0.0
/usr/i486-suse-linux/bin/ld: cannot find -lapttlog
collect2: ld returned 1 exit status
libtool: install: error: relink `libaptttest.la' with the above command
before installing it
libtool: install: warning: remember to run `libtool --finish /usr/lib'

Is there any sensible way around this?

Regards,

Philip Willoughby

Systems Programmer, Department of Computing, Imperial College, London, UK
-- 
echo address@hidden | tr "bizndfohces" "pwgd9ociaku"

Why reinvent the wheel? . . . . . . . . . Because we can make it rounder...




reply via email to

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