diff options
author | lloyd <[email protected]> | 2006-09-04 23:23:41 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-04 23:23:41 +0000 |
commit | 16226ac85b0c46c79dd7188cfc490e5b48dfa5c8 (patch) | |
tree | fa73e14b4a9c6504db67b0b6e4b2ea4434de19ba /configure.pl | |
parent | 23397e7fc39d36e9624001fa130e4ad6a18cc9db (diff) |
Remove the compiler debug flags hash and the makefile style hash
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/configure.pl b/configure.pl index e52ef066f..f8152eeb5 100755 --- a/configure.pl +++ b/configure.pl @@ -73,9 +73,7 @@ my(%SUBMODEL_ALIAS, %ARCH, %ARCH_ALIAS, %OS_OBJ_SUFFIX, %OS_SHARED_SUFFIX, %OS_STATIC_SUFFIX, %OS_AR_COMMAND, %OS_AR_NEEDS_RANLIB, %OS_ALIAS, %CC_SO_OBJ_FLAGS, %CC_SO_LINK_FLAGS, - %CC_DEBUG_FLAGS, %CC_NO_DEBUG_FLAGS, - %CC_MACHINE_OPT_FLAGS, %CC_MACHINE_OPT_FLAGS_RE, - %CC_ABI_FLAGS, %MAKEFILE_STYLE); + %CC_MACHINE_OPT_FLAGS, %CC_MACHINE_OPT_FLAGS_RE, %CC_ABI_FLAGS); my $user_set_root = ''; my ($doc_dir, $lib_dir); @@ -202,7 +200,7 @@ sub main() { realname($arch),"\n" if($submodel ne $arch); } - $make_style = $MAKEFILE_STYLE{$cc} unless($make_style); + $make_style = $COMPILER{$cc}{'makefile_style'} unless($make_style); die "(error): Module set $module_set isn't known\n" if($module_set && !defined($MODULE_SETS{$module_set})); @@ -1027,10 +1025,12 @@ sub generate_makefile { if($ccinfo{'lib_opt_flags'}) { $lib_opt_flags .= $ccinfo{'lib_opt_flags'}; } - if(!$debug and ($CC_NO_DEBUG_FLAGS{$cc})) - { $lib_opt_flags .= ' '.$CC_NO_DEBUG_FLAGS{$cc}; } - if($debug and ($CC_DEBUG_FLAGS{$cc})) - { $lib_opt_flags .= ' '.$CC_DEBUG_FLAGS{$cc}; } + if(!$debug and $ccinfo{'no_debug_flags'}) { + $lib_opt_flags .= ' ' . $ccinfo{'no_debug_flags'}; + } + if($debug and $ccinfo{'debug_flags'}) { + $lib_opt_flags .= ' ' . $ccinfo{'debug_flags'}; + } my $mach_opt_flags = mach_opt($cc, $arch, $submodel); @@ -1939,9 +1939,6 @@ sub set_cc_defines { %{$COMPILER{$cc}} = %info; $CC_SO_OBJ_FLAGS{$cc} = $info{'so_obj_flags'}; - $CC_DEBUG_FLAGS{$cc} = $info{'debug_flags'}; - $CC_NO_DEBUG_FLAGS{$cc} = $info{'no_debug_flags'}; - $MAKEFILE_STYLE{$cc} = $info{'makefile_style'}; %{$CC_ABI_FLAGS{$cc}} = %{$info{'mach_abi_linking'}} if(defined($info{'mach_abi_linking'})); |