LibraryFromObjects did set AR on $(1) instead of on $(_l), the latter

one being $(1:S=$(SUFLIB)). Thus the wrong AR would be used when
the name passed to LibraryFromObjects didn't have the .a suffix yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15029 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-11-19 00:57:21 +00:00
parent d081112cb7
commit 32bf6c0b07

View File

@ -382,11 +382,11 @@ rule LibraryFromObjects
on $(_l) {
# set the tools according to the platform
if $(PLATFORM) = host {
AR on $(1) = $(HOST_AR) $(HOST_ARFLAGS) ;
RANLIB on $(1) = $(HOST_RANLIB) ;
AR on $(_l) = $(HOST_AR) $(HOST_ARFLAGS) ;
RANLIB on $(_l) = $(HOST_RANLIB) ;
} else {
AR on $(1) = $(TARGET_AR) $(TARGET_ARFLAGS) ;
RANLIB on $(1) = $(TARGET_RANLIB) ;
AR on $(_l) = $(TARGET_AR) $(TARGET_ARFLAGS) ;
RANLIB on $(_l) = $(TARGET_RANLIB) ;
}
# library depends on its member objects