diff --git a/checkmate.cabal b/checkmate.cabal
--- a/checkmate.cabal
+++ b/checkmate.cabal
@@ -3,7 +3,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           checkmate
-version:        0.1.1
+version:        0.1.2
 synopsis:       Generate checklists relevant to a given patch
 category:       Development
 stability:      alpha
@@ -24,6 +24,11 @@
   type: git
   location: https://github.com/spoqa/checkmate
 
+flag static
+  description: Static link
+  manual: True
+  default: False
+
 library
   hs-source-dirs:
       src
@@ -51,7 +56,7 @@
   main-is: Main.hs
   hs-source-dirs:
       app
-  ghc-options: -Wall -fwarn-incomplete-uni-patterns -threaded -rtsopts -with-rtsopts=-N -static
+  ghc-options: -Wall
   build-depends:
       base >= 4.7 && < 5
     , diff-parse >= 0.2.1 && < 0.3.0
@@ -63,6 +68,10 @@
     , checkmate
     , github == 0.16.*
     , optparse-applicative >= 0.13.2.0 && < 0.15.0.0
+  if flag(static)
+    ghc-options: -fwarn-incomplete-uni-patterns -threaded -rtsopts -with-rtsopts=-N
+  else
+    ghc-options: -fwarn-incomplete-uni-patterns -threaded -rtsopts -with-rtsopts=-N -static -optl-static -optl-pthread -optc-Os -fPIC
   default-language: Haskell2010
 
 test-suite hlint
