From f1e077f8318b3b11b562ed19385c88f4a8447d3d Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 4 Sep 2003 19:12:09 +0000 Subject: [PATCH] Since we enable KEEPOBJS, the Library rules doesn't make the libraries a dependency of "lib". Since the StaticLibrary rules is supposed to build the static libs distributed with the system, we explicitly add the missing dependency there. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4501 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamrules | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Jamrules b/Jamrules index 5feda26336..4074622be1 100644 --- a/Jamrules +++ b/Jamrules @@ -140,7 +140,7 @@ if $(DEBUG) != 0 { # variable NO_TEST_DEBUG. # Instructs the Library rule to not make its object files temporary. -# This is need as some objects are used in a static library and for an +# This is needed as some objects are used in a static library and for an # executable. KEEPOBJS = true ; @@ -745,19 +745,26 @@ rule MakeLocateObjects rule StaticLibrary { # StaticLibrary : ; - + + local lib = lib$(<)$(SUFLIB) ; SetupIncludes ; SetupObjectsDir ; MakeLocateObjects $(2) ; - Library lib$(<).a : $(>) ; - MakeLocate lib$(<).a : $(OBOS_STLIB_DIR) ; + Library $(lib) : $(>) ; + MakeLocate $(lib) : $(OBOS_STLIB_DIR) ; + + # If KEEPOBJS is set, Library doesn't make the library depend on + # `lib'. + if $(KEEPOBJS) { + LocalDepends lib : $(lib) ; + } } rule R5KernelStaticLibrary { # R5KernelStaticLibrary : ; - local lib = lib$(1).a ; + local lib = lib$(1)$(SUFLIB) ; local sources = $(2) ; SetupIncludes ;