[Top][All Lists]

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

libltdl/config/compile and Windows-style paths

From: Christopher Hulbert
Subject: libltdl/config/compile and Windows-style paths
Date: Tue, 19 May 2009 09:51:59 -0400

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.


reply via email to

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