Permalink
Browse files

Add systemlib flag for sqlite

  • Loading branch information...
snoyberg committed Oct 6, 2010
1 parent 8c128a5 commit e32d76ca6a8667176f07578376c6bf80ec068045
Showing with 9 additions and 2 deletions.
  1. +9 −2 backends/sqlite/persistent-sqlite.cabal
@@ -1,5 +1,5 @@
name: persistent-sqlite
-version: 0.2.2
+version: 0.2.2.1
license: BSD3
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
@@ -12,6 +12,10 @@ cabal-version: >= 1.6
build-type: Simple
homepage: http://docs.yesodweb.com/persistent/
+flag systemlib
+ description: Use the system-wide sqlite library
+ default: False
+
library
build-depends: base >= 4 && < 5,
template-haskell >= 2.4 && < 2.5,
@@ -24,7 +28,10 @@ library
exposed-modules: Database.Sqlite
Database.Persist.Sqlite
ghc-options: -Wall
- c-sources: cbits/sqlite3.c
+ if flag(systemlib)
+ extra-libraries: sqlite3
+ else
+ c-sources: cbits/sqlite3.c
source-repository head
type: git

0 comments on commit e32d76c

Please sign in to comment.