From 578c33c010f153de45036647817f08f2f0ee00fa Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 30 May 2002 18:06:52 +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 9f47605034..986db2f614 100755 --- a/Configure +++ b/Configure @@ -1116,6 +1116,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 11155abb3b..dd755f49fb 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