Make output from openssl version -f consistent with previous versions
authorMatt Caswell <matt@openssl.org>
Tue, 13 Jan 2015 10:20:12 +0000 (10:20 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 13 Jan 2015 11:27:36 +0000 (11:27 +0000)
Reviewed-by: Andy Polyakov <appro@openssl.org>
crypto/Makefile
util/mk1mf.pl

index 5e6a0c3..1078240 100644 (file)
@@ -64,7 +64,7 @@ fips: cryptlib.o thr_id.o uid.o $(CPUID_OBJ)
                done;
 
 buildinf.h: ../Makefile
-       $(PERL) $(TOP)/util/mkbuildinf.pl "$(CFLAGS)" "$(PLATFORM)" >buildinf.h
+       $(PERL) $(TOP)/util/mkbuildinf.pl "$(CC) $(CFLAGS)" "$(PLATFORM)" >buildinf.h
 
 x86cpuid.s:    x86cpuid.pl perlasm/x86asm.pl
        $(PERL) x86cpuid.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
index e3d6c30..f3f5d68 100755 (executable)
@@ -836,7 +836,7 @@ open (OUT,">>crypto/buildinf.h") || die "Can't open buildinf.h";
 printf OUT <<EOF;
 #ifdef $platform_cpp_symbol
   /* auto-generated/updated by util/mk1mf.pl for crypto/cversion.c */
-  #define CFLAGS "$cc $cflags"
+  #define CFLAGS "compiler: $cc $cflags"
   #define PLATFORM "$platform"
 EOF
 printf OUT "  #define DATE \"%s\"\n", scalar gmtime();