diff --git a/tweet-hs.cabal b/tweet-hs.cabal
--- a/tweet-hs.cabal
+++ b/tweet-hs.cabal
@@ -1,5 +1,5 @@
 name:                tweet-hs
-version:             0.5.3.10
+version:             0.5.3.11
 synopsis:            Command-line tool for twitter
 description:         a Command Line Interface Tweeter
 homepage:            https://github.com/vmchale/command-line-tweeter#readme
@@ -19,6 +19,11 @@
   Default: False
 }
 
+Flag library {
+  Description: Don't build an executable
+  Default:     False
+}
+
 library
   hs-source-dirs:      src
   exposed-modules:     Web.Tweet
@@ -56,13 +61,16 @@
   -- -fwarn-unused-binds 
 
 executable tweet
+  if flag(library)
+    Buildable: False
+  else
+    Buildable: True
   hs-source-dirs:      app
   main-is:             Main.hs
   if flag(llvm-fast)
     ghc-options:       -threaded -rtsopts -with-rtsopts=-N -fllvm -optlo-O3 -O3
   else
     ghc-options:       -threaded -rtsopts -with-rtsopts=-N
-    ---static -optc-static -optl-static
   build-depends:       base
                      , tweet-hs 
   default-language:    Haskell2010
