diff options
author | lloyd <[email protected]> | 2006-09-08 10:13:03 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-08 10:13:03 +0000 |
commit | e1fd01459053560c5cc3c2591afb88d49f6cc8b5 (patch) | |
tree | c5e566fe3c12dbcf71795a9d5416edee945c0562 /configure.pl | |
parent | 3461ac347fa26376abcda48b281ea2438a2e0f77 (diff) |
Fix handling for systems that need to run ranlib on static libraries.
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/configure.pl b/configure.pl index 92871a53c..d68cb2e56 100755 --- a/configure.pl +++ b/configure.pl @@ -478,15 +478,13 @@ sub os_install_info { sub mach_opt { my ($config) = @_; - my $cc = $$config{'compiler'}; - my $submodel = $$config{'submodel'}; - my $arch = $$config{'arch'}; - - my %ccinfo = %{$COMPILER{$cc}}; + my %ccinfo = %{$COMPILER{$$config{'compiler'}}}; # Nothing we can do in that case return '' unless defined($ccinfo{'mach_opt_flags'}); + my $submodel = $$config{'submodel'}; + my $arch = $$config{'arch'}; if(defined($ccinfo{'mach_opt_flags'}{$submodel})) { return $ccinfo{'mach_opt_flags'}{$submodel}; @@ -1509,7 +1507,7 @@ sub generate_makefile { 'so_link' => $so_link_flags, 'ar_command' => $ar_command, - 'ar_needs_ranlib' => $ar_needs_ranlib, + 'ranlib_command' => ($ar_needs_ranlib ? 'ranlib' : 'true'), 'static_suffix' => os_info_for($os, 'static_suffix'), 'so_suffix' => os_info_for($os, 'so_suffix'), 'obj_suffix' => os_info_for($os, 'obj_suffix'), @@ -1613,8 +1611,6 @@ sub build_cmds { sub print_unix_makefile { my ($config) = @_; - die "fixme: ar_needs_ranlib is ignored" if $$config{'ar_needs_ranlib'}; - my $src = $$config{'sources'}; my $check = $$config{'check_src'}; |