This is a first hand fix against double-quoting libparrot on mingw.
libparrot is already quoted in hints/mswin32.pm libparrot_ldflags
A better fix would detected spaces in build_dir and quote the space
with \ on posix shells, and protect it with " on mswin32.
destdir or any other targetdir spaces need to to be detected like
this, since their are entered by the user and as such properly
quoted by the user.
|
old
|
new
|
|
| 35 | 35 | #IF(parrot_is_shared):$LIBPARROT = q[@libparrot_ldflags@]; |
| 36 | 36 | |
| 37 | 37 | # Here comes some stuff for Win32. |
| 38 | | our $PATHQUOTE = q[]; |
| 39 | | if ($^O eq 'MSWin32') { |
| 40 | | # Paths need quoting as they may contain spaces. |
| 41 | | $PATHQUOTE = q["]; |
| 42 | | |
| 43 | | unless ($CC =~ /gcc/i) { |
| 44 | | $LIBPARROT = '@build_dir@/libparrot@a@'; |
| 45 | | } |
| 46 | | } |
| | 38 | our $PATHQUOTE = $^O eq 'MSWin32' ? '"' : ''; |
| 47 | 39 | |
| 48 | 40 | # OPS2C Config |
| 49 | 41 | our $OPS2C = "$PERL -I $PATHQUOTE" . |