I need to pass /DEF:c:\filepath\myLib.def" command line option from a bash script to MS compiler/linker. The path is generated as part of build process by a bash script. Basically, the argument that my script passes is:
-DEF:/c/filepath/myLib.def
MSYS path conversion can't handle it properly because it doesn't understand /DEF:
part. It works if I do
-DEF=/c/filepath/myLib.def
but then ms tools don't understand this parameter. In short, what's the proper way to write that parameter in MSYS bash so that it converts it to proper argument?
On cygwin I could use cygpath, but there is no equivalent, because somebody from msys thinks that it's not needed (even if there are scripts for cygwin that uses cygpath).
MSYS
cygpath
Program
This program convert a DOS path to a UNIX path and vice versa
Compared to Cygwin
cygpath
The output from this program is better than the output from Cygwin
cygpath
in MSYS becausecygpath
remove the Cygwin home from a converted path, f.e.which is a problem because
This program doesn't remove the Cygwin home
Compared to automatic MSYS path conversion
Manual path conversion has a use in MSYS because
for f.e.
make