autoconf
[Top][All Lists]
Advanced

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

Re: compile with VC++


From: Harald Dunkel
Subject: Re: compile with VC++
Date: Wed, 26 Oct 2005 12:22:14 +0200
User-agent: Debian Thunderbird 1.0.2 (X11/20050402)

Stepan Kasal wrote:
> 
> I looked at /usr/share/automake-1.9/compile and I cannot understand
> how this could happen.
> I think that the parametr to compile should look like
>       some/path/main.c
> which becomes cfile, and then cofile is assigned as
> 
> cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
> 

Unfrtunately $cfile is the output of 'cygpath -w ../hello.c'
in this case, e.g. '\\somehost\somepath\hello.c'. So $cofile
is set to '\\somehost\somepath\hello.o'. Surely not correct.

How about this patch for compile?

cofile=`echo "$cfile" | sed -e 's|^.*[/\\]||' -e 's/\.c$/.o/'`
                                     ^^^^^
If a user adds '\' into his Unix filenames and uses a compiler
that doesn't understand -c -o, then he is out of luck.


Regards

Harri




reply via email to

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