Allow setting RCFLAGS as Configure option or environment variable
authorWojciech Kaluza <w-kaluza@tlen.pl>
Sun, 21 Apr 2019 11:39:20 +0000 (12:39 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 2 May 2019 09:17:05 +0000 (11:17 +0200)
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 0c4e984de28b1477e002766b2751576f5c6c47d6)

Configure

index 9796084f88dd84c4c34161d017ff86c3aa369edb..85418b3eb84f1fa69e2e1e811e7f888c01622571 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -562,7 +562,7 @@ my %user = (
     PERL        => env('PERL') || ($^O ne "VMS" ? $^X : "perl"),
     RANLIB      => env('RANLIB'),
     RC          => env('RC') || env('WINDRES'),
-    RCFLAGS     => [],
+    RCFLAGS     => [ env('RCFLAGS') || () ],
     RM          => undef,
    );
 # Info about what "make variables" may be prefixed with the cross compiler
@@ -579,6 +579,7 @@ my %useradd = (
     CXXFLAGS    => [],
     LDFLAGS     => [],
     LDLIBS      => [],
+    RCFLAGS     => [],
    );
 
 my %user_synonyms = (