On Wed, Jan 17, 2001 at 01:08:14PM +0100, Alexander Mai wrote:
[...]
> Note the -L../../lib/Xm-2.0/.libs, this is a relative path triggered
> by Makefile.am (my working copy; CVS is even worse) ecerpt:
> libMrm_la_LIBADD = -L$(top_builddir)/lib/Xm-2.0/.libs -lXm
>
> The problem is that the dependency that libtool&friends generate out of
> it contains the relative path, while we need an absolute one!?
> top_builddir is a relative variable on my system (like "../.."),
> only top_srcdir is an absolute one.
libMrm_la_LIBADD = -L`pwd`/../Xm-2.0/.libs -lXm
would be an idea. Looks ugly and I'm not even sure how portable this is.
Or perhaps slightly rewritten:
DotDotDir=`pwd`/..
libMrm_la_LIBADD = -L$(DotDotDir)/Xm-2.0/.libs -lXm
WRT just linking the libs I tried again
libMrm_la_LIBADD = ../Xm-2.0/libXm.la
This does fail on my i86linux box
libtool: link: error: cannot link shared libraries into libtool libraries
but succeeds on DU.
On linux
libMrm_la_LIBADD = ../Xm-2.0/.libs/libXm.so
works, so I don't understand fully the error message issued by libtool.
--
Alexander Mai
[EMAIL PROTECTED]