From: Richard Levitte Date: Thu, 30 May 2002 18:06:35 +0000 (+0000) Subject: Reformat the CFLAG string so it can be made part of a C string. X-Git-Tag: OpenSSL_0_9_6e~26^2~114 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=1ed0c6621b082636caf55334b3ada25a6bbcd0c7 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 --- 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 '; \