diff options
author | Richard Levitte <levitte@openssl.org> | 2002-05-30 18:06:35 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-05-30 18:06:35 +0000 |
commit | 1ed0c6621b082636caf55334b3ada25a6bbcd0c7 (patch) | |
tree | a7b120f48c213389d1c0f97cb7f2a72f57f82a57 | |
parent | 5f8453587eeea3f32747189f84e69f547b6d7b39 (diff) | |
download | openssl-new-1ed0c6621b082636caf55334b3ada25a6bbcd0c7.tar.gz |
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
-rwxr-xr-x | Configure | 4 | ||||
-rw-r--r-- | crypto/Makefile.ssl | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -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 '; \ |