openssl: fix build failure on windows
authorFedor Indutny <fedor@indutny.com>
Thu, 8 Jan 2015 19:05:43 +0000 (19:05 +0000)
committerFedor Indutny <fedor@indutny.com>
Mon, 12 Jan 2015 18:31:08 +0000 (21:31 +0300)
Backport of: https://github.com/openssl/openssl/commit/5c5e7e

Original commit message:

    Fix build failure on Windows due to undefined cflags identifier

Reviewed-by: Tim Hudson <tjh@openssl.org>
PR-URL: https://github.com/iojs/io.js/pull/289
Reviewed-By: Fedor Indutny <fedor@indutny.com>
deps/openssl/openssl/crypto/cversion.c
deps/openssl/openssl/util/mkbuildinf.pl

index 0336ada..881957e 100644 (file)
@@ -77,7 +77,7 @@ const char *SSLeay_version(int t)
        if (t == SSLEAY_CFLAGS)
                {
 #ifdef CFLAGS
-               return(cflags);
+               return(CFLAGS);
 #else
                return("compiler: information not available");
 #endif
index 9d7b81c..ffa8a39 100755 (executable)
@@ -7,7 +7,7 @@ $date = localtime();
 print <<"END_OUTPUT";
 #ifndef MK1MF_BUILD
     /* auto-generated by util/mkbuildinf.pl for crypto/cversion.c */
-    #define CFLAGS
+    #define CFLAGS cflags
     /*
      * Generate CFLAGS as an array of individual characters. This is a
      * workaround for the situation where CFLAGS gets too long for a C90 string