Force recreation of *.a archives to avoid build errors caused by

stale dependencies after renaming or deleting object files.
This will avoid link error like the one that was caused by the 
recent mesa update.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20148 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2007-02-17 22:42:16 +00:00
parent f082d94258
commit 3f493ef624
2 changed files with 11 additions and 0 deletions

View File

@ -154,5 +154,8 @@ rule KernelStaticLibraryObjects
actions KernelStaticLibraryObjects
{
# Force recreation of the archive to avoid build errors caused by
# stale dependencies after renaming or deleting object files.
$(RM) "$(1)"
$(HAIKU_AR) -r "$(1)" "$(2)" ;
}

View File

@ -357,6 +357,14 @@ actions C++
$(C++) -c "$(2)" $(C++FLAGS) $(CCDEFS) $(CCHDRS) -o "$(1)" ;
}
actions together Archive
{
# Force recreation of the archive to avoid build errors caused by
# stale dependencies after renaming or deleting object files.
$(RM) $(<)
$(AR) $(<) $(>)
}
rule Library
{
local lib = $(1) ;