|
@@ -132,7 +132,7 @@ my %table=(
|
|
|
"debug-bodo", "gcc:-DL_ENDIAN -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -DBIO_PAIR_DEBUG -g -m486 -pedantic -Wshadow -Wall::-D_REENTRANT::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
|
|
"debug-ulf", "gcc:-DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DBN_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -Wall -Werror -Wshadow -pipe::-D_REENTRANT::${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
|
|
"debug-steve", "gcc:-DL_ENDIAN -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DDEBUG_SAFESTACK -DCRYPTO_MDEBUG_ALL -DPEDANTIC -g -O2 -m486 -pedantic -Wall -Werror -Wshadow -pipe::-D_REENTRANT::${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}",
|
|
|
-"debug-levitte-linux-elf","gcc:-DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wid-clash-31 -pipe::-D_REENTRANT:-ldl:::::::::::dlfcn",
|
|
|
+"debug-levitte-linux-elf","gcc:-DUSE_ALLOCATING_PRINT -DRL_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DNO_ASM -DL_ENDIAN -DTERMIO -D_POSIX_SOURCE -ggdb -g3 -m486 -pedantic -ansi -Wall -Wshadow -Wid-clash-31 -pipe::-D_REENTRANT:-ldl:::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
|
|
|
"dist", "cc:-O::(unknown):::::",
|
|
|
|
|
|
# Basic configs that should work on any (32 and less bit) box
|
|
@@ -405,7 +405,7 @@ my %table=(
|
|
|
"aix-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384::(unknown)::BN_LLONG RC4_CHAR:::",
|
|
|
"aix-gcc", "gcc:-O3 -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR:::",
|
|
|
"aix43-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384::(unknown)::BN_LLONG RC4_CHAR::::::::::dlfcn:",
|
|
|
-"aix43-gcc", "gcc:-O3 -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR::::::::::dlfcn:",
|
|
|
+"aix43-gcc", "gcc:-O1 -DAIX -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR::::::::::dlfcn:",
|
|
|
|
|
|
#
|
|
|
# Cray T90 and similar (SDSC)
|
|
@@ -487,7 +487,7 @@ my %table=(
|
|
|
|
|
|
# Cygwin
|
|
|
"Cygwin-pre1.3", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32",
|
|
|
-"Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -m486 -Wall::::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32:cygwin-shared:::.dll",
|
|
|
+"Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -march=486 -Wall::::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32:cygwin-shared:::.dll",
|
|
|
|
|
|
# Ultrix from Bernhard Simon <simon@zid.tuwien.ac.at>
|
|
|
"ultrix-cc","cc:-std1 -O -Olimit 1000 -DL_ENDIAN::(unknown)::::::",
|
|
@@ -505,12 +505,18 @@ my %table=(
|
|
|
"rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::",
|
|
|
"darwin-ppc-cc","cc:-O3 -D_DARWIN -DB_ENDIAN -fno-common::-D_REENTRANT::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::::::::::darwin-shared:-fPIC::.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib",
|
|
|
|
|
|
+##### A/UX
|
|
|
+"aux3-gcc","gcc:-O2 -DTERMIO::(unknown):-lbsd:RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::",
|
|
|
+
|
|
|
##### Sony NEWS-OS 4.x
|
|
|
"newsos4-gcc","gcc:-O -DB_ENDIAN -DNEWS4::(unknown):-lmld -liberty:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::",
|
|
|
|
|
|
##### VxWorks for various targets
|
|
|
"vxworks-ppc405","ccppc:-g -msoft-float -mlongcall -DVXWORKS -DCPU=PPC405 -I\$(WIND_BASE)/target/h:::-r:::::",
|
|
|
|
|
|
+##### Compaq Non-Stop Kernel (Tandem)
|
|
|
+"tandem-c89","c89:-Ww -D__TANDEM -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D_TANDEM_SOURCE -DB_ENDIAN::(unknown)::THIRTY_TWO_BIT:::",
|
|
|
+
|
|
|
);
|
|
|
|
|
|
my @WinTargets=qw(VC-NT VC-WIN32 VC-WIN16 VC-W31-16 VC-W31-32 VC-MSDOS BC-32
|
|
@@ -587,6 +593,7 @@ my $libs;
|
|
|
my $target;
|
|
|
my $options;
|
|
|
my $symlink;
|
|
|
+my $make_depend=0;
|
|
|
|
|
|
my @argvcopy=@ARGV;
|
|
|
my $argvstring="";
|
|
@@ -1210,11 +1217,13 @@ if($IsWindows) {
|
|
|
EOF
|
|
|
close(OUT);
|
|
|
} else {
|
|
|
- (system "make -f Makefile.ssl PERL=\'$perl\' links") == 0 or exit $?
|
|
|
- if $symlink;
|
|
|
- ### (system 'make depend') == 0 or exit $? if $depflags ne "";
|
|
|
- # Run "make depend" manually if you want to be able to delete
|
|
|
- # the source code files of ciphers you left out.
|
|
|
+ my $make_command = "make -f Makefile.ssl PERL=\'$perl\'";
|
|
|
+ my $make_targets = "";
|
|
|
+ $make_targets .= " links" if $symlink;
|
|
|
+ $make_targets .= " depend" if $depflags ne "" && $make_depend;
|
|
|
+ $make_targets .= " gentests" if $symlink;
|
|
|
+ (system $make_command.$make_targets) == 0 or exit $?
|
|
|
+ if $make_targets ne "";
|
|
|
if ( $perl =~ m@^/@) {
|
|
|
&dofile("tools/c_rehash",$perl,'^#!/', '#!%s','^my \$dir;$', 'my $dir = "' . $openssldir . '";');
|
|
|
&dofile("apps/der_chop",$perl,'^#!/', '#!%s');
|
|
@@ -1224,6 +1233,15 @@ EOF
|
|
|
&dofile("tools/c_rehash",'/usr/local/bin/perl','^#!/', '#!%s','^my \$dir;$', 'my $dir = "' . $openssldir . '";');
|
|
|
&dofile("apps/der_chop",'/usr/local/bin/perl','^#!/', '#!%s');
|
|
|
&dofile("apps/CA.pl",'/usr/local/bin/perl','^#!/', '#!%s');
|
|
|
+ }
|
|
|
+ if ($depflags ne "" && !$make_depend) {
|
|
|
+ print <<EOF;
|
|
|
+
|
|
|
+Since you've disabled at least one algorithm, you need to do the following
|
|
|
+before building:
|
|
|
+
|
|
|
+ make depend
|
|
|
+EOF
|
|
|
}
|
|
|
}
|
|
|
|