summaryrefslogtreecommitdiffstats
path: root/haskell/haskell-test-framework/test-framework_cabal.patch
blob: 2bc5bb37accd7e5f3b0f0a93d498aec79a571ad9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- test-framework.cabal.orig	2011-02-04 03:59:59.000000000 +0200
+++ test-framework.cabal	2011-02-04 04:01:17.000000000 +0200
@@ -21,6 +21,10 @@
         Description:    Build the tests
         Default:        False
 
+Flag Dynamic
+        Description:    Link executable dynamically
+        Default:        False
+
 
 Library
         Exposed-Modules:        Test.Framework
@@ -102,6 +106,8 @@
                 Cpp-Options:            -DTEST
         
                 Ghc-Options:            -Wall -threaded
+                if flag(Dynamic)
+                        Ghc-Options:            -dynamic
         
                 if impl(ghc)
                         Cpp-Options:            -DCOMPILER_GHC