summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/util/mk1mf.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/util/mk1mf.pl')
-rw-r--r--src/lib/libcrypto/util/mk1mf.pl22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/lib/libcrypto/util/mk1mf.pl b/src/lib/libcrypto/util/mk1mf.pl
index afe8c7326d..780029a03f 100644
--- a/src/lib/libcrypto/util/mk1mf.pl
+++ b/src/lib/libcrypto/util/mk1mf.pl
@@ -13,7 +13,6 @@ $banner="\t\@echo Building OpenSSL";
13 13
14my $no_static_engine = 1; 14my $no_static_engine = 1;
15my $engines = ""; 15my $engines = "";
16my $otherlibs = "";
17local $zlib_opt = 0; # 0 = no zlib, 1 = static, 2 = dynamic 16local $zlib_opt = 0; # 0 = no zlib, 1 = static, 2 = dynamic
18local $zlib_lib = ""; 17local $zlib_lib = "";
19local $perl_asm = 0; # 1 to autobuild asm files from perl scripts 18local $perl_asm = 0; # 1 to autobuild asm files from perl scripts
@@ -267,7 +266,6 @@ $cflags.=" -DOPENSSL_NO_KRB5" if $no_krb5;
267$cflags.=" -DOPENSSL_NO_EC" if $no_ec; 266$cflags.=" -DOPENSSL_NO_EC" if $no_ec;
268$cflags.=" -DOPENSSL_NO_ECDSA" if $no_ecdsa; 267$cflags.=" -DOPENSSL_NO_ECDSA" if $no_ecdsa;
269$cflags.=" -DOPENSSL_NO_ECDH" if $no_ecdh; 268$cflags.=" -DOPENSSL_NO_ECDH" if $no_ecdh;
270$cflags.=" -DOPENSSL_NO_GOST" if $no_gost;
271$cflags.=" -DOPENSSL_NO_ENGINE" if $no_engine; 269$cflags.=" -DOPENSSL_NO_ENGINE" if $no_engine;
272$cflags.=" -DOPENSSL_NO_HW" if $no_hw; 270$cflags.=" -DOPENSSL_NO_HW" if $no_hw;
273$cflags.=" -DOPENSSL_NO_JPAKE" if $no_jpake; 271$cflags.=" -DOPENSSL_NO_JPAKE" if $no_jpake;
@@ -358,12 +356,6 @@ for (;;)
358 $lib=$val; 356 $lib=$val;
359 $lib =~ s/^.*\/([^\/]+)$/$1/; 357 $lib =~ s/^.*\/([^\/]+)$/$1/;
360 } 358 }
361 if ($key eq "LIBNAME" && $no_static_engine)
362 {
363 $lib=$val;
364 $lib =~ s/^.*\/([^\/]+)$/$1/;
365 $otherlibs .= " $lib";
366 }
367 359
368 if ($key eq "EXHEADER") 360 if ($key eq "EXHEADER")
369 { $exheader.=&var_add($dir,$val, 1); } 361 { $exheader.=&var_add($dir,$val, 1); }
@@ -666,7 +658,7 @@ foreach (split(/\s+/,$test))
666 $rules.=&do_link_rule("\$(TEST_D)$o$t$exep",$tt,"\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)"); 658 $rules.=&do_link_rule("\$(TEST_D)$o$t$exep",$tt,"\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)");
667 } 659 }
668 660
669$defs.=&do_defs("E_SHLIB",$engines . $otherlibs,"\$(ENG_D)",$shlibp); 661$defs.=&do_defs("E_SHLIB",$engines,"\$(ENG_D)",$shlibp);
670 662
671foreach (split(/\s+/,$engines)) 663foreach (split(/\s+/,$engines))
672 { 664 {
@@ -679,14 +671,6 @@ foreach (split(/\s+/,$engines))
679$rules.= &do_lib_rule("\$(SSLOBJ)","\$(O_SSL)",$ssl,$shlib,"\$(SO_SSL)"); 671$rules.= &do_lib_rule("\$(SSLOBJ)","\$(O_SSL)",$ssl,$shlib,"\$(SO_SSL)");
680$rules.= &do_lib_rule("\$(CRYPTOOBJ)","\$(O_CRYPTO)",$crypto,$shlib,"\$(SO_CRYPTO)"); 672$rules.= &do_lib_rule("\$(CRYPTOOBJ)","\$(O_CRYPTO)",$crypto,$shlib,"\$(SO_CRYPTO)");
681 673
682foreach (split(" ",$otherlibs))
683 {
684 my $uc = $_;
685 $uc =~ tr /a-z/A-Z/;
686 $rules.= &do_lib_rule("\$(${uc}OBJ)","\$(ENG_D)$o$_$shlibp", "", $shlib, "");
687
688 }
689
690$rules.=&do_link_rule("\$(BIN_D)$o\$(E_EXE)$exep","\$(E_OBJ)","\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)"); 674$rules.=&do_link_rule("\$(BIN_D)$o\$(E_EXE)$exep","\$(E_OBJ)","\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)");
691 675
692print $defs; 676print $defs;
@@ -724,7 +708,6 @@ sub var_add
724 return("") if $no_dsa && $dir =~ /\/dsa/; 708 return("") if $no_dsa && $dir =~ /\/dsa/;
725 return("") if $no_dh && $dir =~ /\/dh/; 709 return("") if $no_dh && $dir =~ /\/dh/;
726 return("") if $no_ec && $dir =~ /\/ec/; 710 return("") if $no_ec && $dir =~ /\/ec/;
727 return("") if $no_gost && $dir =~ /\/ccgost/;
728 return("") if $no_cms && $dir =~ /\/cms/; 711 return("") if $no_cms && $dir =~ /\/cms/;
729 return("") if $no_jpake && $dir =~ /\/jpake/; 712 return("") if $no_jpake && $dir =~ /\/jpake/;
730 if ($no_des && $dir =~ /\/des/) 713 if ($no_des && $dir =~ /\/des/)
@@ -1064,7 +1047,6 @@ sub read_options
1064 "no-ec" => \$no_ec, 1047 "no-ec" => \$no_ec,
1065 "no-ecdsa" => \$no_ecdsa, 1048 "no-ecdsa" => \$no_ecdsa,
1066 "no-ecdh" => \$no_ecdh, 1049 "no-ecdh" => \$no_ecdh,
1067 "no-gost" => \$no_gost,
1068 "no-engine" => \$no_engine, 1050 "no-engine" => \$no_engine,
1069 "no-hw" => \$no_hw, 1051 "no-hw" => \$no_hw,
1070 "just-ssl" => 1052 "just-ssl" =>
@@ -1155,7 +1137,7 @@ sub read_options
1155 } 1137 }
1156 } 1138 }
1157 } 1139 }
1158 elsif (/^([^=]*)=(.*)$/){ $VARS{$1}=$2; } 1140 elsif (/^([^=]*)=(.*)$/ && !/^-D/){ $VARS{$1}=$2; }
1159 elsif (/^-[lL].*$/) { $l_flags.="$_ "; } 1141 elsif (/^-[lL].*$/) { $l_flags.="$_ "; }
1160 elsif ((!/^-help/) && (!/^-h/) && (!/^-\?/) && /^-.*$/) 1142 elsif ((!/^-help/) && (!/^-h/) && (!/^-\?/) && /^-.*$/)
1161 { $c_flags.="$_ "; } 1143 { $c_flags.="$_ "; }