Commit fa7fbeb
committed
Windows: Add workaround for MSYS' path conversion
MSYS' automatic path conversion causes problems when passing paths as
defines ('-D' arguments to the compiler). MSYS tries to be smart and
converts absolute paths to native Windows paths, e.g. if MSYS sees
"/bin" it converts it to "c:/msysgit/bin". But we want completely
unmodified paths; e.g. if we set bindir in the Makefile to "/bin", the
define BINDIR shall expand to "/bin". Conversion to absolute Windows
path will takes place later, during runtime.
This commit adds a workaround by replacing "/" with its octal
representation "\057", effectively hiding the path from MSYS' path
conversion mechanism. MSYS does no longer see the absolute path and
therefore leaves it alone.1 parent cc185a6 commit fa7fbeb
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1052 | 1058 | | |
1053 | 1059 | | |
1054 | 1060 | | |
| |||
1100 | 1106 | | |
1101 | 1107 | | |
1102 | 1108 | | |
1103 | | - | |
| 1109 | + | |
1104 | 1110 | | |
1105 | 1111 | | |
1106 | 1112 | | |
| |||
1207 | 1213 | | |
1208 | 1214 | | |
1209 | 1215 | | |
1210 | | - | |
| 1216 | + | |
1211 | 1217 | | |
1212 | | - | |
| 1218 | + | |
1213 | 1219 | | |
1214 | 1220 | | |
1215 | | - | |
| 1221 | + | |
1216 | 1222 | | |
1217 | 1223 | | |
1218 | 1224 | | |
| |||
0 commit comments