bug-libtool
[Top][All Lists]
Advanced

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

Re: libltdl/config/compile and Windows-style paths


From: Ralf Wildenhues
Subject: Re: libltdl/config/compile and Windows-style paths
Date: Tue, 19 May 2009 23:34:26 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Christopher,

* Christopher Hulbert wrote on Tue, May 19, 2009 at 03:51:59PM CEST:
> The assignment of 'cofile' fails for windows-style paths (i.e. the
> line cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`). When
> this happens, the tests later that move the file to the appropriate
> directory never is true. This occurs using the Intel C-compiler on
> windows which does not support the '-o' option to rename executables.
> I just hacked it to use a case statement where the first case looks
> for a cfile with [a-zA-Z]:[.\\]* type of path. If so, I used cygpath
> -u to convert it to a unix style path and then used the echo | sed
> already there. I am sure there is an approach only using sed that
> would work.

Thanks for the report.  The `compile' script comes from Automake.
There, this bug has already been fixed in

  commit d7fb4311ce271bf84fb44553b435036356720e5b

      Fix w32 path handling in the `compile' script.
      
      * lib/compile: Handle colons and backslashes in win32 paths.
      * tests/compile2.test: New test.
      * tests/Makefile.am: Update.
      Report and initial patch by Peter Rosin.

and as such is fixed in recently released Automake 1.11.

Please report back if there are still problems with that newer script.

Cheers,
Ralf




reply via email to

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