Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417907 - dev-db/sqlite should optionally install a static library
Summary: dev-db/sqlite should optionally install a static library
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-05-28 02:06 UTC by ari edelkind
Modified: 2013-01-05 22:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to add 'static-libs' USE flag to sqlite-3.7.12.1.ebuild (sqlite-3.7.12.1.ebuild.patch,1.38 KB, patch)
2012-05-28 02:06 UTC, ari edelkind
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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