avoid -DPLATFORM=\"...\" and -DCFLAGS=\"...\" command lines,
use new file buildinf.h instead.
diff --git a/Configure b/Configure
index 4b68a09..2bc2ad0 100755
--- a/Configure
+++ b/Configure
@@ -266,6 +266,8 @@
"BC-16","bcc:::(unknown)::BN_LLONG DES_PTR RC4_INDEX SIXTEEN_BIT:::",
# CygWin32
+# (Note: the real CFLAGS for Windows builds are defined by util/mk1mf.pl
+# and its library files in util/pl/*)
"CygWin32", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG $x86_gcc_des $x86_gcc_opts:",
"Mingw32", "gcc:-DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG $x86_gcc_des $x86_gcc_opts:",
@@ -686,16 +688,14 @@
print "BF_PTR2 used\n" if $bf_ptr == 2;
if($IsWindows) {
- open (OUT,">crypto/date.h") || die "Can't open date.h";
- printf OUT "#define DATE \"%s\"\n", scalar gmtime();
- printf OUT <<EOF; # Kludge -- usually those are passed on the command line
-#ifndef CFLAGS
+ open (OUT,">crypto/buildinf.h") || die "Can't open buildinf.h";
+ printf OUT <<EOF;
+/* auto-generated by Configure for crypto/cversion.c */
+/* (Unix builds: auto-generated by crypto/Makefile.ssl) */
#define CFLAGS "$cc $cflags"
-#endif
-#ifndef PLATFORM
#define PLATFORM "$target"
-#endif
EOF
+ printf OUT "#define DATE \"%s\"\n", scalar gmtime();
close(OUT);
system "perl crypto/objects/obj_dat.pl <crypto/objects/objects.h >crypto/objects/obj_dat.h";
} else {