Mercurial > flash_v2
diff packages/pkgconf.tcl @ 44:41bd4f3a90de ecos-sw-1999-10-08
Merge from eCos master repository on 1999-10-08-07:47:04-BST
| author | jlarmour |
|---|---|
| date | Fri, 08 Oct 1999 13:16:25 +0000 |
| parents | 01ce82f3e11a |
| children | 797268ecc331 |
line wrap: on
line diff
--- a/packages/pkgconf.tcl +++ b/packages/pkgconf.tcl @@ -1312,10 +1312,6 @@ According to the packages file this pack continue } - if { $pkgconf::target_data($target,prefix) == "" } { - fatal_error "The targets file $filename does not list a command prefix for the $target architecture." - } - foreach platform $pkgconf::target_data($target,known_platforms) { if { [llength $pkgconf::target_data($target,$platform,startup)] == 0 } { fatal_error \ @@ -5488,7 +5484,10 @@ proc pkgconf::produce_misc_files { } { } else { set command_prefix $pkgconf::target_data($pkgconf::config_data(target),prefix) } - + if {"" != $command_prefix} { + set command_prefix "${command_prefix}-" + } + puts $file "" puts $file "COMPONENT_REPOSITORY\t\t:= [get_pathname_for_make $pkgconf::component_repository]" puts $file "BUILD_TREE\t\t\t:= [get_pathname_for_make $pkgconf::build_tree]" @@ -5511,11 +5510,11 @@ proc pkgconf::produce_misc_files { } { puts $file "EXEEXT\t\t\t\t:= .exe" } puts $file "" - puts $file "PKGCONF_CC\t\t\t:= $command_prefix-gcc" - puts $file "PKGCONF_CXX\t\t\t:= $command_prefix-gcc" - puts $file "PKGCONF_AR\t\t\t:= $command_prefix-ar" - puts $file "PKGCONF_LD\t\t\t:= $command_prefix-ld" - puts $file "PKGCONF_OBJCOPY\t\t\t:= $command_prefix-objcopy" + puts $file "PKGCONF_CC\t\t\t:= ${command_prefix}gcc" + puts $file "PKGCONF_CXX\t\t\t:= ${command_prefix}gcc" + puts $file "PKGCONF_AR\t\t\t:= ${command_prefix}ar" + puts $file "PKGCONF_LD\t\t\t:= ${command_prefix}ld" + puts $file "PKGCONF_OBJCOPY\t\t\t:= ${command_prefix}objcopy" puts $file "" foreach flag $pkgconf::known_compiler_flags {
