[Top][All Lists]

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

Libtool dependency_libs vs. cross-compiling

From: Schleicher Ralph (LLI)
Subject: Libtool dependency_libs vs. cross-compiling
Date: Wed, 12 Mar 2003 17:18:12 +0100 (GNU libtool) 1.4e (1.1192 2003/02/18 05:15:03)


I'm cross-compiling a whole system (MinGW + extensions) on
a HP-UX box.  All packages are configured with --prefix=/sys
and installed via `make prefix=/prefix/sys'.  My intention
is to do a '(cd /prefix/sys && tar cf ../sys.tar .)' to
create a binary package for installation on the host system.

Everything works fine except that Libtool's dependency_libs
variable contains references to /sys/lib/ while the
file name at compilation time is /prefix/sys/lib/
If dependency_libs is empty, Libtool issues warning messages
of the form

libtool: link: warning: `/prefix/sys/lib/' seems to be moved
libtool: link: warning: library `/prefix/sys/lib/' was moved.

but continues to link programs without an error.

If, on the other hand, a library has
dependency_libs=/sys/lib/ and a program is linked
with '-L/prefix/sys/lib -lbar -lfoo', Libtool fails because
the file /sys/lib/ does not exist at compilation
time.  Well, that's correct but the behaviour is suboptimal.
If I clear the dependency_libs for, Libtool links
the program without an error (but a warning, see above).

Any thoughts about how to deal with that?


reply via email to

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