> Subject: debian-policy: provides the exception of static libraries. > In Libraries section, > > In general, libraries must have a shared version in the > library package and a static version in the development > package. > > But, if libraries uses dlopen(3) internally, then some > programs links the static version, it doesn't work > correctly. because dlopen(3) doesn't try to resolve the > symbols in the static-linked program. in most cases, the > static version of such libraries is meaningless to be > provided. You need to link your executable binary with -export-dynamic: man ld: -export-dynamic When creating an ELF file, add all symbols to the dynamic symbol table. Normally, the dynamic symbol table contains only symbols which are used by a dy namic object. This option is needed for some uses of dlopen. > So I think our policy needs to be added the exception of > such case. I do not agree, for the reason mentionned above. Cheers, Bill.
Attachment:
pgpIxcGrnXlwM.pgp
Description: PGP signature