Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 417907

Summary: dev-db/sqlite should optionally install a static library
Product: Gentoo Linux Reporter: ari edelkind <edelkind-gentoo-bugzilla>
Component: [OLD] DevelopmentAssignee: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Status: RESOLVED FIXED    
Severity: enhancement CC: proxy-maint
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to add 'static-libs' USE flag to sqlite-3.7.12.1.ebuild

Description ari edelkind 2012-05-28 02:06:36 UTC
Created attachment 313349 [details, diff]
patch to add 'static-libs' USE flag to sqlite-3.7.12.1.ebuild

Is there a reason that the sqlite ebuild disables the building of a static library by default?  Attached is a patch that enables it if the 'static-libs' USE flag is enabled.

Due to licensing conflicts, libpthread and libdl cannot be linked into this library, even if one wanted them so; therefore, assuming that sqlite is built with '--enable-threadsafe' and '--enable-dynamic-extensions' (as is the default), -lpthread and -ldl must be passed to the linker when using libsqlite3.a in one's software.
Comment 1 Sergey Popov gentoo-dev 2013-01-05 22:37:59 UTC
+  05 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> sqlite-3.7.15.1.ebuild:
+  Add support for building static library, wrt bug #417907. Thanks to ari
+  edelkind <edelkind-gentoo-bugzilla AT episec.com> for discovering this issue
+  and providing patch