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:
parent
f082d94258
commit
3f493ef624
|
@ -154,5 +154,8 @@ rule KernelStaticLibraryObjects
|
||||||
|
|
||||||
actions 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)" ;
|
$(HAIKU_AR) -r "$(1)" "$(2)" ;
|
||||||
}
|
}
|
||||||
|
|
|
@ -357,6 +357,14 @@ actions C++
|
||||||
$(C++) -c "$(2)" $(C++FLAGS) $(CCDEFS) $(CCHDRS) -o "$(1)" ;
|
$(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
|
rule Library
|
||||||
{
|
{
|
||||||
local lib = $(1) ;
|
local lib = $(1) ;
|
||||||
|
|
Loading…
Reference in New Issue