Add RCFLAGS variable in Windows build file, and use it
authorWojciech Kaluza <w-kaluza@tlen.pl>
Sun, 21 Apr 2019 11:14:34 +0000 (12:14 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 2 May 2019 09:14:21 +0000 (11:14 +0200)
- Allow user-defined RCFLAGS
- Pass RCFLAGS to RC

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8803)

Configurations/windows-makefile.tmpl

index a1daf7d696409c78087b77f8107739e8927caa85..de597941034503c61b27e4ce767c492be35244bd 100644 (file)
@@ -206,6 +206,7 @@ AS={- $config{AS} -}
 ASFLAGS={- join(' ', @{$config{ASFLAGS}}) -}
 
 RC={- $config{RC} -}
+RCFLAGS={- join(' ', @{$config{RCFLAGS}}) -}
 
 ECHO="$(PERL)" "$(SRCDIR)\util\echo.pl"
 
@@ -630,7 +631,7 @@ EOF
          my $res = platform->res($args{obj});
          return <<"EOF";
 $res: $deps
-       \$(RC) \$(RCOUTFLAG)\$\@ $srcs
+       \$(RC) \$(RCFLAGS) \$(RCOUTFLAG)\$\@ $srcs
 EOF
      }
      my $obj = platform->obj($args{obj});