jgoerzen / twidge

Command-line twitter/identica client [Haskell]
http://wiki.github.com/jgoerzen/twidge/
GNU General Public License v2.0
221 stars 29 forks source link

Cannot build with -fwithBitly #10

Closed astanin closed 14 years ago

astanin commented 14 years ago

Twidge doesn't compile with -fwithBitly:

$ runghc Setup.lhs configure -fwithBitly --user
Configuring twidge-1.0.1...
$ runghc Setup.lhs build
Preprocessing executables for twidge-1.0.1...
Building twidge-1.0.1...
gcc: USE_BITLY: No such file or directory
astanin commented 14 years ago

To fix:

diff --git a/twidge.cabal b/twidge.cabal
index 999822c..e79062b 100644
--- a/twidge.cabal
+++ b/twidge.cabal
@@ -54,7 +54,7 @@ Executable twidge

   if flag(withBitly)
     Build-Depends: Bitly
-    CPP-OPTIONS: USE_BITLY
+    CPP-OPTIONS: -DUSE_BITLY

   Main-Is: twidge.hs
   Other-Modules: Commands, Commands.FollowBlock, Commands.Ls,
jgoerzen commented 14 years ago

Fix withBitly flag Closed by ed39b7c19f5d347c4b415a8750aea48a1b92ae6c