Re: compile with VC++

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

 



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


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux