r17746: the automatic archive creation in make breaks on 3 platforms. Lets try
authorAndrew Tridgell <tridge@samba.org>
Wed, 23 Aug 2006 11:21:44 +0000 (11:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:16:36 +0000 (14:16 -0500)
manual archives and see if they work a bit better ....
(This used to be commit 15ec8c3741f89ac4d6f0cd794dc916ee37d883cc)

source4/lib/ldb/Makefile.in

index 51227a29ed74b5d9d22f858e452603781b0f7ce0..f164e84c3bc5abe4bc28aa475a1ac7e4845047be 100644 (file)
@@ -57,13 +57,13 @@ LDB_LIB = lib/libldb.a
 
 BINS = bin/ldbadd bin/ldbsearch bin/ldbdel bin/ldbmodify bin/ldbedit bin/ldbrename bin/ldbtest bin/oLschema2ldif
 
-LIBS = $(LDB_LIB)( $(OBJS) )
+LIBS = $(LDB_LIB)
 
 EXAMPLES = examples/ldbreader examples/ldifreader
 
 DIRS = lib bin common replace ldb_tdb ldb_ldap ldb_sqlite3 modules tools examples tdb talloc
 
-all: dirs $(OBJS) $(LIBS) $(BINS) $(EXAMPLES) manpages
+all: dirs $(OBJS) $(LDB_LIB) $(BINS) $(EXAMPLES) manpages
 
 .c.o:
        @echo Compiling $*.c
@@ -74,6 +74,8 @@ dirs:
        @mkdir -p $(DIRS)
 
 lib/libldb.a: $(OBJS)
+       ar -rv $@ $(OBJS)
+       @-ranlib $@
 
 bin/ldbadd: tools/ldbadd.o tools/cmdline.o $(LIBS)
        $(CC) -o bin/ldbadd tools/ldbadd.o tools/cmdline.o $(LIB_FLAGS)