bug-libtool
[Top][All Lists]
Advanced

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

Various buglets


From: Peter Eisentraut
Subject: Various buglets
Date: Tue, 1 Oct 2002 22:04:48 +0200 (CEST)

I'm looking at the latest CVS on the default branch

ltmain.sh (GNU libtool) 1.4e (1.1133 2002/09/25 04:26:19)

bootstrapped by Autoconf 2.52 and Automake 1.6.2, on i686-pc-cygwin.

I see a few failures in the test suite.  The quote.test fails because in
link mode 'libtool $CC -o hell ...' actually ends up running '$CC -o
hell.exe ...' and that confuses the matching logic.  The below illustrates
a naive fix:

diff -u -r1.6 quote.test
--- quote.test  10 Sep 2001 22:27:23 -0000      1.6
+++ quote.test  1 Oct 2002 12:07:49 -0000
@@ -69,7 +69,7 @@
     ;;

   link)
-    preargs="$CC -o hell -g -O"
+    preargs="$CC -o hell.exe -g -O"
     preflag=-Wl,
     flag="-someflag="
     postargs="foo.o"

===end

Furthermore, build-relink2.test fails with

[...]
removing libl3.la from ../depdemo/l3
running ../depdemo/depdemo
= Exiting: ../depdemo/depdemo does not run, maybe libl3 was not installed

and popup windows informing me that cygl3-0.dll was not found.  Judging
from the -rpath flag it probably expected it in
${top_builddir}/tests/_inst/lib but it was installed in
${top_builddir}/tests/_inst/bin (which is reasonable for this platform).

The notice that is printed during installation suggesting putting LIBDIR
into PATH is also wrong because you need to put BINDIR into PATH.
Moreover, I have my doubts that hardcoding works at all on this platform.
At least there seems to be a big mixup between BINDIR and LIBDIR.

Next, there's something wrong with the initialization of fix_srcfile_path
in libtool.m4.  If it does get assigned you have the following in the
generated libtool script:

fix_srcfile_path="`cygpath -w "$srcfile"`"

Besides being an unportable quoting construct, it evaluates $srcdir before
it is set.  Either the outer or the inner double quotes need to become
single quotes.  Unfortunately, that seems to be a bit tricky to arrange.

Finally, I wonder why libtool insists on configuring the C++ and Fortran
tags even though my project doesn't use those languages anywhere.

-- 
Peter Eisentraut   address@hidden





reply via email to

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