From 1ed0c6621b082636caf55334b3ada25a6bbcd0c7 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 30 May 2002 18:06:35 +0000 Subject: [PATCH] Reformat the CFLAG string so it can be made part of a C string. Incidently, this works pretty well on the command line as well. PR: 52 --- Configure | 4 ++++ crypto/Makefile.ssl | 8 ++++---- 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 '; \ -- 2.25.1