mk1mf.pl: replace chop for windows.
authorAndy Polyakov <appro@openssl.org>
Sun, 15 Jul 2012 13:40:04 +0000 (13:40 +0000)
committerRich Salz <rsalz@openssl.org>
Fri, 15 May 2015 18:18:21 +0000 (14:18 -0400)
Backport old patch to make it work in mixture of perls for Windows.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Cherry-picked from 7bb98eee3c9e4694dfc2217001d5075ce8d2906e

util/mk1mf.pl

index 7d4491faeb6603d74c7557f29d77783b143bc368..9b8abc0cf115fec17aaec76364a1b783d729070a 100755 (executable)
@@ -340,7 +340,7 @@ open(IN,"<$infile") || die "unable to open $infile:$!\n";
 $_=<IN>;
 for (;;)
        {
-       chop;
+       s/\s*$//; # was chop, didn't work in mixture of perls for Windows...
 
        ($key,$val)=/^([^=]+)=(.*)/;
        if ($key eq "RELATIVE_DIRECTORY")