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:19:29 +0000 (14:19 -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

(cherry picked from commit 051b41df4105355a5a9c7f1c0bd00cc70b2d324c)

util/mk1mf.pl

index 550ef9f6853476ba527c180ab131f952eace0cdf..1eee7aa349e26d22395e33beaa1ce72cc73dbc3e 100755 (executable)
@@ -326,7 +326,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")