avoid -DPLATFORM=\"...\" and -DCFLAGS=\"...\" command lines,
use new file buildinf.h instead.
This commit is contained in:
8
CHANGES
8
CHANGES
@@ -4,6 +4,14 @@
|
|||||||
|
|
||||||
Changes between 0.9.3a and 0.9.4
|
Changes between 0.9.3a and 0.9.4
|
||||||
|
|
||||||
|
*) The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=...
|
||||||
|
(both in crypto/Makefile.ssl for use by crypto/cversion.c) caused
|
||||||
|
problems not only on Windows, but also on some Unix platforms.
|
||||||
|
To avoid problematic command lines, these definitions are now made
|
||||||
|
in auto-generated file crypto/buildinf.h, which also defines DATE
|
||||||
|
and thus replaces crypto/date.h.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
*) MIPS III/IV assembler module is reimplemented.
|
*) MIPS III/IV assembler module is reimplemented.
|
||||||
[Andy Polyakov]
|
[Andy Polyakov]
|
||||||
|
|
||||||
|
|||||||
14
Configure
14
Configure
@@ -266,6 +266,8 @@ my %table=(
|
|||||||
"BC-16","bcc:::(unknown)::BN_LLONG DES_PTR RC4_INDEX SIXTEEN_BIT:::",
|
"BC-16","bcc:::(unknown)::BN_LLONG DES_PTR RC4_INDEX SIXTEEN_BIT:::",
|
||||||
|
|
||||||
# CygWin32
|
# CygWin32
|
||||||
|
# (Note: the real CFLAGS for Windows builds are defined by util/mk1mf.pl
|
||||||
|
# and its library files in util/pl/*)
|
||||||
"CygWin32", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG $x86_gcc_des $x86_gcc_opts:",
|
"CygWin32", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG $x86_gcc_des $x86_gcc_opts:",
|
||||||
"Mingw32", "gcc:-DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG $x86_gcc_des $x86_gcc_opts:",
|
"Mingw32", "gcc:-DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG $x86_gcc_des $x86_gcc_opts:",
|
||||||
|
|
||||||
@@ -686,16 +688,14 @@ print "BF_PTR used\n" if $bf_ptr == 1;
|
|||||||
print "BF_PTR2 used\n" if $bf_ptr == 2;
|
print "BF_PTR2 used\n" if $bf_ptr == 2;
|
||||||
|
|
||||||
if($IsWindows) {
|
if($IsWindows) {
|
||||||
open (OUT,">crypto/date.h") || die "Can't open date.h";
|
open (OUT,">crypto/buildinf.h") || die "Can't open buildinf.h";
|
||||||
printf OUT "#define DATE \"%s\"\n", scalar gmtime();
|
printf OUT <<EOF;
|
||||||
printf OUT <<EOF; # Kludge -- usually those are passed on the command line
|
/* auto-generated by Configure for crypto/cversion.c */
|
||||||
#ifndef CFLAGS
|
/* (Unix builds: auto-generated by crypto/Makefile.ssl) */
|
||||||
#define CFLAGS "$cc $cflags"
|
#define CFLAGS "$cc $cflags"
|
||||||
#endif
|
|
||||||
#ifndef PLATFORM
|
|
||||||
#define PLATFORM "$target"
|
#define PLATFORM "$target"
|
||||||
#endif
|
|
||||||
EOF
|
EOF
|
||||||
|
printf OUT "#define DATE \"%s\"\n", scalar gmtime();
|
||||||
close(OUT);
|
close(OUT);
|
||||||
system "perl crypto/objects/obj_dat.pl <crypto/objects/objects.h >crypto/objects/obj_dat.h";
|
system "perl crypto/objects/obj_dat.pl <crypto/objects/objects.h >crypto/objects/obj_dat.h";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ AR= ar r
|
|||||||
PEX_LIBS=
|
PEX_LIBS=
|
||||||
EX_LIBS=
|
EX_LIBS=
|
||||||
|
|
||||||
CFLAGS= $(INCLUDE) $(CFLAG) -DCFLAGS="\"$(CC) $(CFLAG)\"" -DPLATFORM="\"$(PLATFORM)\""
|
CFLAGS= $(INCLUDE) $(CFLAG)
|
||||||
|
|
||||||
|
|
||||||
LIBS=
|
LIBS=
|
||||||
@@ -40,17 +40,21 @@ LIBOBJ= cryptlib.o mem.o cversion.o ex_data.o tmdiff.o cpt_err.o
|
|||||||
SRC= $(LIBSRC)
|
SRC= $(LIBSRC)
|
||||||
|
|
||||||
EXHEADER= crypto.h tmdiff.h opensslv.h opensslconf.h ebcdic.h
|
EXHEADER= crypto.h tmdiff.h opensslv.h opensslconf.h ebcdic.h
|
||||||
HEADER= cryptlib.h date.h $(EXHEADER)
|
HEADER= cryptlib.h buildinf.h $(EXHEADER)
|
||||||
|
|
||||||
ALL= $(GENERAL) $(SRC) $(HEADER)
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
||||||
|
|
||||||
top:
|
top:
|
||||||
@(cd ..; $(MAKE) DIRS=$(DIR) all)
|
@(cd ..; $(MAKE) DIRS=$(DIR) all)
|
||||||
|
|
||||||
all: date.h lib subdirs
|
all: buildinf.h lib subdirs
|
||||||
|
|
||||||
date.h: ../Makefile.ssl
|
buildinf.h: ../Makefile.ssl
|
||||||
echo "#define DATE \"`date`\"" >date.h
|
( echo "/* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
|
||||||
|
echo "/* (Windows builds: auto-generated by Configure) */"; \
|
||||||
|
echo "#define CFLAGS \"$(CC) $(CFLAG)\""; \
|
||||||
|
echo "#define PLATFORM \"$(PLATFORM)\""; \
|
||||||
|
echo "#define DATE \"`date`\"" ) >buildinf.h
|
||||||
|
|
||||||
subdirs:
|
subdirs:
|
||||||
@for i in $(SDIRS) ;\
|
@for i in $(SDIRS) ;\
|
||||||
@@ -125,7 +129,7 @@ depend:
|
|||||||
done;
|
done;
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f date.h *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
rm -f buildinf.h date.h *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
||||||
@for i in $(SDIRS) ;\
|
@for i in $(SDIRS) ;\
|
||||||
do \
|
do \
|
||||||
(cd $$i; echo "making clean in crypto/$$i..."; \
|
(cd $$i; echo "making clean in crypto/$$i..."; \
|
||||||
@@ -149,12 +153,12 @@ cryptlib.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
|||||||
cryptlib.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
cryptlib.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
||||||
cryptlib.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
cryptlib.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
||||||
cryptlib.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
cryptlib.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
||||||
cryptlib.o: ../include/openssl/stack.h cryptlib.h date.h
|
cryptlib.o: ../include/openssl/stack.h cryptlib.h
|
||||||
cversion.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
cversion.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
||||||
cversion.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
cversion.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
||||||
cversion.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
cversion.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
||||||
cversion.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
cversion.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
|
||||||
cversion.o: ../include/openssl/stack.h cryptlib.h date.h
|
cversion.o: ../include/openssl/stack.h buildinf.h cryptlib.h
|
||||||
ex_data.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
ex_data.o: ../include/openssl/bio.h ../include/openssl/buffer.h
|
||||||
ex_data.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
ex_data.o: ../include/openssl/crypto.h ../include/openssl/e_os.h
|
||||||
ex_data.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
ex_data.o: ../include/openssl/e_os2.h ../include/openssl/err.h
|
||||||
|
|||||||
@@ -60,7 +60,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
#include "date.h"
|
|
||||||
|
|
||||||
#if defined(WIN32) || defined(WIN16)
|
#if defined(WIN32) || defined(WIN16)
|
||||||
static double SSLeay_MSVC5_hack=0.0; /* and for VC1.5 */
|
static double SSLeay_MSVC5_hack=0.0; /* and for VC1.5 */
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
#include "date.h"
|
#include "buildinf.h"
|
||||||
|
|
||||||
const char *SSLeay_version(int t)
|
const char *SSLeay_version(int t)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user