Ignore:
Timestamp:
Aug 7, 2014, 8:25:37 PM (11 years ago)
Author:
dmik
Message:

openssl: Merge version 1.0.0n from vendor to trunk.

Location:
openssl/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • openssl/trunk

  • TabularUnified openssl/trunk/util/mk1mf.pl

    r156 r808  
    1414my $no_static_engine = 1;
    1515my $engines = "";
     16my $otherlibs = "";
    1617local $zlib_opt = 0;    # 0 = no zlib, 1 = static, 2 = dynamic
    1718local $zlib_lib = "";
     
    277278$cflags.=" -DOPENSSL_NO_ECDSA" if $no_ecdsa;
    278279$cflags.=" -DOPENSSL_NO_ECDH" if $no_ecdh;
     280$cflags.=" -DOPENSSL_NO_GOST" if $no_gost;
    279281$cflags.=" -DOPENSSL_NO_ENGINE"   if $no_engine;
    280282$cflags.=" -DOPENSSL_NO_HW"   if $no_hw;
     
    366368                $lib=$val;
    367369                $lib =~ s/^.*\/([^\/]+)$/$1/;
     370                }
     371        if ($key eq "LIBNAME" && $no_static_engine)
     372                {
     373                $lib=$val;
     374                $lib =~ s/^.*\/([^\/]+)$/$1/;
     375                $otherlibs .= " $lib";
    368376                }
    369377
     
    669677        }
    670678
    671 $defs.=&do_defs("E_SHLIB",$engines,"\$(ENG_D)",$shlibp);
     679$defs.=&do_defs("E_SHLIB",$engines . $otherlibs,"\$(ENG_D)",$shlibp);
    672680
    673681foreach (split(/\s+/,$engines))
     
    681689$rules.= &do_lib_rule("\$(SSLOBJ)","\$(O_SSL)",$ssl,$shlib,"\$(SO_SSL)");
    682690$rules.= &do_lib_rule("\$(CRYPTOOBJ)","\$(O_CRYPTO)",$crypto,$shlib,"\$(SO_CRYPTO)");
     691
     692foreach (split(" ",$otherlibs))
     693        {
     694        my $uc = $_;
     695        $uc =~ tr /a-z/A-Z/;   
     696        $rules.= &do_lib_rule("\$(${uc}OBJ)","\$(ENG_D)$o$_$shlibp", "", $shlib, "");
     697
     698        }
    683699
    684700$rules.=&do_link_rule("\$(BIN_D)$o\$(E_EXE)$exep","\$(E_OBJ)","\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)");
     
    719735        return("") if $no_dh   && $dir =~ /\/dh/;
    720736        return("") if $no_ec   && $dir =~ /\/ec/;
     737        return("") if $no_gost   && $dir =~ /\/ccgost/;
    721738        return("") if $no_cms  && $dir =~ /\/cms/;
    722739        return("") if $no_jpake  && $dir =~ /\/jpake/;
     
    10591076                "no-ecdsa" => \$no_ecdsa,
    10601077                "no-ecdh" => \$no_ecdh,
     1078                "no-gost" => \$no_gost,
    10611079                "no-engine" => \$no_engine,
    10621080                "no-hw" => \$no_hw,
Note: See TracChangeset for help on using the changeset viewer.