r20529: very, very ugly...
authorStefan Metzmacher <metze@samba.org>
Thu, 4 Jan 2007 20:36:12 +0000 (20:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:36:49 +0000 (14:36 -0500)
But this is currently needed to make regpatch linking in
the dsdb/schema/schema_*.o object files.

the problem is that the linker doesn't find any references to public symbols
in this files and removes them from the link list.

gnu ld has a --whole-archive option, but it seems to be not portable...

I think the solution with prelinking using 'ld -r' to create one object file
for a subsystem instead of using 'ar -rcs' to create an archive for a subsystem...

jelmer: any ideas about this problem?

metze
(This used to be commit 46df7ff6e5e74eddcb81b5a195e82688d83afaf4)

source4/dsdb/config.mk
source4/dsdb/samdb/ldb_modules/config.mk

index dc7254b1e9650af8ce33e8d9f4848dea274fa0fd..206f65d67d637cb032af81f502208fa9c84b8214 100644 (file)
@@ -7,7 +7,9 @@ include samdb/ldb_modules/config.mk
 [SUBSYSTEM::SAMDB]
 PUBLIC_PROTO_HEADER = samdb/samdb_proto.h
 PUBLIC_HEADERS = samdb/samdb.h
-PUBLIC_DEPENDENCIES = ldb LIBCLI_LDAP HEIMDAL_KRB5 
+PUBLIC_DEPENDENCIES = LIBCLI_LDAP HEIMDAL_KRB5 
+PRIVATE_DEPENDENCIES = LIBNDR NDR_MISC NDR_DRSUAPI
+LDFLAGS = $(LIBRARY_ldb_OUTPUT)
 OBJ_FILES = \
                samdb/samdb.o \
                samdb/samdb_privilege.o \
index 95059c800e8e74b149f11f5c99379f63601852b3..f2706c0995f8b0478995bd6b44f57ea10a38acde 100644 (file)
@@ -15,13 +15,11 @@ PUBLIC_DEPENDENCIES = \
 # Start MODULE ldb_repl_mata_data
 [MODULE::ldb_repl_meta_data]
 SUBSYSTEM = ldb
-PRIVATE_DEPENDENCIES = LIBTALLOC
+PRIVATE_DEPENDENCIES = SAMDB LIBTALLOC LIBNDR NDR_MISC NDR_DRSUAPI
 INIT_FUNCTION = repl_meta_data_module_init
 OBJ_FILES = \
                repl_meta_data.o
-PUBLIC_DEPENDENCIES = \
-               LIBNDR NDR_MISC
-# End MODULE ldb_objectguid
+# End MODULE ldb_repl_meta_data
 ################################################
 
 ################################################