diff options
author | lloyd <[email protected]> | 2007-10-20 20:34:54 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-10-20 20:34:54 +0000 |
commit | b53c8dc81aa5a274f380a8734209661a3253116e (patch) | |
tree | e7f0e33950b83103c60c043727aecd7071d3a6c0 /configure.pl | |
parent | 94e118d2993426ae130080a67a4774d5713fabcd (diff) |
Use 'cc' instead of 'compiler' as the key for the compiler name in the config
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.pl b/configure.pl index c52ec02eb..d2c722fd5 100755 --- a/configure.pl +++ b/configure.pl @@ -98,7 +98,7 @@ sub main { choose_target($config, $target); my $os = $$config{'os'}; - my $cc = $$config{'compiler'}; + my $cc = $$config{'cc'}; &$default_value_is('prefix', os_info_for($os, 'install_root')); &$default_value_is('libdir', os_info_for($os, 'lib_dir')); @@ -362,7 +362,7 @@ sub choose_target { } add_to($config, { - 'compiler' => $cc, + 'cc' => $cc, 'os' => $os, 'arch' => $arch, 'submodel' => $submodel, @@ -558,7 +558,7 @@ sub os_info_for { sub my_compiler { my ($config) = @_; - my $cc = $$config{'compiler'}; + my $cc = $$config{'cc'}; croak('my_compiler called, but no compiler set in config') unless defined $cc and $cc ne ''; @@ -901,7 +901,7 @@ sub load_module { unless(&$works_on($arch, @{$module{'arch'}}) or &$works_on($sub, @{$module{'arch'}})); - my $cc = $$config{'compiler'}; + my $cc = $$config{'cc'}; croak("Module '$modname' does not work with $cc") unless(&$works_on($cc, @{$module{'cc'}})); @@ -1294,7 +1294,7 @@ sub get_cc_info { sub guess_mods { my ($config) = @_; - my $cc = $$config{'compiler'}; + my $cc = $$config{'cc'}; my $os = $$config{'os'}; my $arch = $$config{'arch'}; my $submodel = $$config{'submodel'}; @@ -1504,7 +1504,7 @@ sub generate_makefile { if($$config{'so_obj_flags'} eq '' and $$config{'so_link'} eq '') { $$config{'shared'} = 'no'; - warning($$config{'compiler'}, ' has no shared object flags set ', + warning($$config{'cc'}, ' has no shared object flags set ', "for $os; disabling shared"); } } |