[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
DESTDIR install and OpenBSD
From: |
Carlo Contavalli |
Subject: |
DESTDIR install and OpenBSD |
Date: |
Wed, 25 Jan 2006 12:42:15 +0100 |
Hello,
I have two libraries: libtesta and libtestb. libtestb depends
upon libtesta. The compilation process is fine. If I make install,
it seems ok. However, if I:
make install DESTDIR=/tmp/root.openbsd/
On linux it seems to work ok, with a couple warnings. On OpenBSD,
libtool returns the error:
=============== OpenBSD: make install DESTDIR=/tmp/root.openbsd/
/usr/bin/install -c -d -m 0755 '/tmp/root.openbsd//usr/local/lib'
/bin/bash ../..//libtool --mode=install install -m 0644 libtestb.la
'/tmp/root.openbsd//usr/local/lib/libtestb.la'
libtool: install: warning: relinking `libtestb.la'
(cd /tmp/compile/build-openbsd/build-library/libtestb; /bin/sh ../..//libtool
--mode=relink gcc -o libtestb.la -rpath
/usr/local/lib -version-info 0:0:0 -L../../build-library/libtesta/ test1.lo
test2.lo ../../build-library/libtesta//libtesta.la -inst-prefix-dir
/tmp/root.openbsd/)
gcc -shared -fPIC -DPIC -o .libs/libtestb.so.0.0 .libs/test1.o .libs/test2.o
/usr/local/lib/libtesta.so.0.0
gcc: /usr/local/lib/libtesta.so.0.0: No such file or directory
libtool: install: error: relink `libtestb.la' with the above command before
installing it
*** Error code 1
Stop in /tmp/compile/build-openbsd/build-library/libtestb (line 105 of
Makefile).
=============== Linux: make install DESTDIR=/tmp/root.linux/
/usr/bin/install -c -d -m 0755 '/tmp/root.linux//usr/local/lib'
/bin/sh ../..//libtool --mode=install install -m 0644 libtestb.la
'/tmp/root.linux//usr/local/lib/libtestb.la'
libtool: install: warning: relinking `libtestb.la'
(cd /tmp/compile/build/build-library/libtestb; /bin/sh ../..//libtool
--mode=relink gcc -o libtestb.la -rpath /usr/local/lib -version-info 0:0:0
-L../../build-library/libtesta/ -lefence test1.lo test2.lo
../../build-library/libtesta//libtesta.la -inst-prefix-dir /tmp/root.linux/)
gcc -shared .libs/test1.o .libs/test2.o -Wl,--rpath -Wl,/usr/local/lib
-lefence -L/tmp/root.linux//usr/local/lib -L/usr/local/lib -ltesta -Wl,-soname
-Wl,libtestb.so.0 -o .libs/libtestb.so.0.0.0
install -m 0644 .libs/libtestb.so.0.0.0T
/tmp/root.linux//usr/local/lib/libtestb.so.0.0.0
(cd /tmp/root.linux//usr/local/lib && { ln -s -f libtestb.so.0.0.0
libtestb.so.0 || { rm -f libtestb.so.0 && ln -s libtestb.so.0.0.0
libtestb.so.0; }; })
(cd /tmp/root.linux//usr/local/lib && { ln -s -f libtestb.so.0.0.0 libtestb.so
|| { rm -f libtestb.so && ln -s libtestb.so.0.0.0 libtestb.so; }; })
install -m 0644 .libs/libtestb.lai /tmp/root.linux//usr/local/lib/libtestb.la
install -m 0644 .libs/libtestb.a /tmp/root.linux//usr/local/lib/libtestb.a
chmod 644 /tmp/root.linux//usr/local/lib/libtestb.a
ranlib /tmp/root.linux//usr/local/lib/libtestb.a
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
[...]
Am I doing something wrong? Or should I report this as a bug? should I really
add libtool --finish /usr/local/lib to the Makefile?
Thanks,
Cheers,
Carlo
--
GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
-------------
"Hey! Who took the cork off my lunch??!"
-- W. C. Fields
- DESTDIR install and OpenBSD,
Carlo Contavalli <=
- Re: DESTDIR install and OpenBSD, Ralf Wildenhues, 2006/01/25
- Re: DESTDIR install and OpenBSD, Carlo Contavalli, 2006/01/25
- Re: DESTDIR install and OpenBSD, Jacob Meuser, 2006/01/25
- Re: DESTDIR install and OpenBSD, Ralf Wildenhues, 2006/01/26
- Re: DESTDIR install and OpenBSD, Ralf Wildenhues, 2006/01/26
- Re: DESTDIR install and OpenBSD, Jacob Meuser, 2006/01/26
- Re: DESTDIR install and OpenBSD, Ralf Wildenhues, 2006/01/30
- Re: DESTDIR install and OpenBSD, Jacob Meuser, 2006/01/31
- Re: DESTDIR install and OpenBSD, Ralf Wildenhues, 2006/01/31
- Re: DESTDIR install and OpenBSD, Jacob Meuser, 2006/01/31