summaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2011-08-18 10:48:14 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2011-08-18 10:48:14 -0700
commit54520c4e6f6f26d5dee21f97fc561ff69e03f883 (patch)
treeb11e4653d13ce2892549b5b6a1ef4b93cf595289 /pandoc.cabal
parentf25df13b8e6498a8e9a5dc2b0aee9c7855ce4eb2 (diff)
Workaround for linker errors in macosx + ghc 7.0.3.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal18
1 files changed, 12 insertions, 6 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 757254c36..7e903f002 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -219,10 +219,13 @@ Library
if flag(highlighting)
Build-depends: highlighting-kate >= 0.2.9 && < 0.3
cpp-options: -D_HIGHLIGHTING
- if impl(ghc >= 6.12)
- Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
+ if impl(ghc == 7.0.3) && os(macosx)
+ Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -optl-Wl,-no_pie
else
- Ghc-Options: -O2 -Wall
+ if impl(ghc >= 6.12)
+ Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
+ else
+ Ghc-Options: -O2 -Wall
Ghc-Prof-Options: -auto-all -caf-all
Extensions: CPP
Hs-Source-Dirs: src
@@ -305,10 +308,13 @@ Executable pandoc
if flag(highlighting)
Build-depends: highlighting-kate >= 0.2.9 && < 0.3
cpp-options: -D_HIGHLIGHTING
- if impl(ghc >= 6.12)
- Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
+ if impl(ghc == 7.0.3) && os(macosx)
+ Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -optl-Wl,-no_pie
else
- Ghc-Options: -O2 -Wall
+ if impl(ghc >= 6.12)
+ Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
+ else
+ Ghc-Options: -O2 -Wall
Ghc-Prof-Options: -auto-all -caf-all
Extensions: CPP
Hs-Source-Dirs: src