libtool-patches
[Top][All Lists]
Advanced

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

Re: Cygwin patches


From: Charles Wilson
Subject: Re: Cygwin patches
Date: Wed, 16 Oct 2002 15:46:38 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2

Charles Wilson wrote:

    * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): avoid long delay on
` cygwin/Win9x when computing commandline length.
    (AC_LIBTOOL_SYS_DYNAMIC_LINKER): fix postinstall_cmds when
    sources are in a subdirectory



A few notes about the postinstall_cmds change (ignore the linewrapping...):


Uncovered by a test failure in the automake-1.6.2 suite (nobase).

Looks like a libtool bug.  The commandline is:

/bin/bash ./libtool --mode=install /usr/bin/install -c sub/libbase.la \ /usr/src/automake/devel/automake-1.6.2/.build/tests/testSubDir/inst/foo/libbase.la

Only one problem: postinstall_cmds do this:

dlpath=`bash 2>&1 -c '. sub/.libs/sub/libbase.lai;echo $dlname'`
dldir=/usr/src/automake/devel/automake-1.6.2/.build/tests/testSubDir/inst/foo/`dirname $dlpath`

Notice that we try to access sub/.libs/sub/libbase.lai -- this is wrong.
  libbase.lai is in .libs, not .libs/sub/.  The problem is \${file} is
  should be basename'd.

So that's what the patch does.

--Chuck





reply via email to

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