summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xConfigure4
-rw-r--r--crypto/Makefile.ssl8
2 files changed, 8 insertions, 4 deletions
diff --git a/Configure b/Configure
index 2a8b2251d7..8fe14d8a41 100755
--- a/Configure
+++ b/Configure
@@ -1124,6 +1124,10 @@ if ($rmd160_obj =~ /\.o$/)
$cflags.=" -DRMD160_ASM";
}
+# "Stringify" the C flags string. This permits it to be made part of a string
+# and works as well on command lines.
+$cflags =~ s/([\\\"])/\\\1/g;
+
my $version = "unknown";
my $major = "unknown";
my $minor = "unknown";
diff --git a/crypto/Makefile.ssl b/crypto/Makefile.ssl
index 2ef333ef8b..98685800e4 100644
--- a/crypto/Makefile.ssl
+++ b/crypto/Makefile.ssl
@@ -54,11 +54,11 @@ all: buildinf.h lib subdirs shared
buildinf.h: ../Makefile.ssl
( echo "#ifndef MK1MF_BUILD"; \
- echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
- echo " #define CFLAGS \"$(CC) $(CFLAG)\""; \
- echo " #define PLATFORM \"$(PLATFORM)\""; \
+ echo ' /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */'; \
+ echo ' #define CFLAGS "$(CC) $(CFLAG)"'; \
+ echo ' #define PLATFORM "$(PLATFORM)"'; \
echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
- echo "#endif" ) >buildinf.h
+ echo '#endif' ) >buildinf.h
testapps:
if echo ${SDIRS} | fgrep ' des '; \