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:17:00 +0000 (11:17 +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)

(cherry picked from commit a583172dac8bce37e268943e570968f193e8b64b)

Configurations/windows-makefile.tmpl

index d420bfff347d9e86d5130075eabd5779f5fccf1d..8ef70b8699f8813ba8d92358272e8b63aa946955 100644 (file)
@@ -187,6 +187,7 @@ AS={- $config{AS} -}
 ASFLAGS={- join(' ', @{$config{ASFLAGS}}) -}
 
 RC={- $config{RC} -}
+RCFLAGS={- join(' ', @{$config{RCFLAGS}}) -}
 
 ECHO="$(PERL)" "$(SRCDIR)\util\echo.pl"
 
@@ -586,7 +587,7 @@ EOF
      if ($srcs[0] =~ /\.rc$/) {
          return <<"EOF";
 $args{obj}: $deps
-       \$(RC) \$(RCOUTFLAG)\$\@ $srcs
+       \$(RC) \$(RCFLAGS) \$(RCOUTFLAG)\$\@ $srcs
 EOF
      }
      (my $obj = $args{obj}) =~ s|\.o$||;