issue with BUILD_TARGET

This commit is contained in:
David Rose 2009-07-22 01:50:14 +00:00
parent 82dbc95f8e
commit 49fce97b4c
2 changed files with 12 additions and 10 deletions

View File

@ -53,15 +53,17 @@
#define real_lib_target_libs #define real_lib_target_libs
#define deferred_objs #define deferred_objs
#forscopes lib_target #forscopes lib_target
#if $[eq $[module $[TARGET],$[TARGET]],] #if $[build_target]
// This library is not on a metalib, so we can build it. #if $[eq $[module $[TARGET],$[TARGET]],]
#set real_lib_targets $[real_lib_targets] $[TARGET] // This library is not on a metalib, so we can build it.
#set real_lib_target_libs $[real_lib_target_libs] $[ODIR]/$[lib_prefix]$[TARGET]$[lib_ext] #set real_lib_targets $[real_lib_targets] $[TARGET]
#else #set real_lib_target_libs $[real_lib_target_libs] $[ODIR]/$[lib_prefix]$[TARGET]$[lib_ext]
// This library is on a metalib, so we can't build it, but we #else
// should build all the obj's that go into it. // This library is on a metalib, so we can't build it, but we
#set deferred_objs $[deferred_objs] \ // should build all the obj's that go into it.
$[patsubst %,$[%_obj],$[compile_sources]] #set deferred_objs $[deferred_objs] \
$[patsubst %,$[%_obj],$[compile_sources]]
#endif
#endif #endif
#end lib_target #end lib_target

View File

@ -55,7 +55,7 @@
#forscopes lib_target #forscopes lib_target
#if $[eq $[module $[TARGET],$[TARGET]],] #if $[eq $[module $[TARGET],$[TARGET]],]
// This library is not on a metalib, so we can build it. // This library is not on a metalib, so we can build it.
#set real_lib_targets $[real_lib_targets] $[TARGET] #set real_lib_targets $[real_lib_targets] $[active_target]
#else #else
// This library is on a metalib, so we can't build it, but we // This library is on a metalib, so we can't build it, but we
// should build all the obj's that go into it. // should build all the obj's that go into it.