diff options
Diffstat (limited to 'src/lib/libcrypto/util/pl/unix.pl')
-rw-r--r-- | src/lib/libcrypto/util/pl/unix.pl | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/lib/libcrypto/util/pl/unix.pl b/src/lib/libcrypto/util/pl/unix.pl index ab4978fd20..146611ad99 100644 --- a/src/lib/libcrypto/util/pl/unix.pl +++ b/src/lib/libcrypto/util/pl/unix.pl | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/usr/bin/perl | 1 | #!/usr/local/bin/perl |
2 | # | 2 | # |
3 | # unix.pl - the standard unix makefile stuff. | 3 | # unix.pl - the standard unix makefile stuff. |
4 | # | 4 | # |
@@ -38,7 +38,7 @@ $ex_libs=""; | |||
38 | # static library stuff | 38 | # static library stuff |
39 | $mklib='ar r'; | 39 | $mklib='ar r'; |
40 | $mlflags=''; | 40 | $mlflags=''; |
41 | $ranlib='util/ranlib.sh'; | 41 | $ranlib=&which("ranlib") or $ranlib="true"; |
42 | $plib='lib'; | 42 | $plib='lib'; |
43 | $libp=".a"; | 43 | $libp=".a"; |
44 | $shlibp=".a"; | 44 | $shlibp=".a"; |
@@ -46,8 +46,8 @@ $lfile=''; | |||
46 | 46 | ||
47 | $asm='as'; | 47 | $asm='as'; |
48 | $afile='-o '; | 48 | $afile='-o '; |
49 | $bn_mulw_obj=""; | 49 | $bn_asm_obj=""; |
50 | $bn_mulw_src=""; | 50 | $bn_asm_src=""; |
51 | $des_enc_obj=""; | 51 | $des_enc_obj=""; |
52 | $des_enc_src=""; | 52 | $des_enc_src=""; |
53 | $bf_enc_obj=""; | 53 | $bf_enc_obj=""; |
@@ -59,7 +59,7 @@ sub do_lib_rule | |||
59 | local($ret,$_,$Name); | 59 | local($ret,$_,$Name); |
60 | 60 | ||
61 | $target =~ s/\//$o/g if $o ne '/'; | 61 | $target =~ s/\//$o/g if $o ne '/'; |
62 | $target="\$(LIB_D)$o$target"; | 62 | $target="$target"; |
63 | ($Name=$name) =~ tr/a-z/A-Z/; | 63 | ($Name=$name) =~ tr/a-z/A-Z/; |
64 | 64 | ||
65 | $ret.="$target: \$(${Name}OBJ)\n"; | 65 | $ret.="$target: \$(${Name}OBJ)\n"; |
@@ -80,4 +80,17 @@ sub do_link_rule | |||
80 | return($ret); | 80 | return($ret); |
81 | } | 81 | } |
82 | 82 | ||
83 | sub which | ||
84 | { | ||
85 | my ($name)=@_; | ||
86 | my $path; | ||
87 | foreach $path (split /:/, $ENV{PATH}) | ||
88 | { | ||
89 | if (-x "$path/$name") | ||
90 | { | ||
91 | return "$path/$name"; | ||
92 | } | ||
93 | } | ||
94 | } | ||
95 | |||
83 | 1; | 96 | 1; |