diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-10-03 17:58:50 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-10-03 17:58:50 +0100 |
commit | 70e78a4861e256deb62466aeade6777f2bf74201 (patch) | |
tree | d542df7e8c3eea4134f66758d4e2f7c87d288b91 /testsuite/mk | |
parent | 7f91d0da2072364dd77d5c519ad83902434d3eb2 (diff) | |
download | haskell-70e78a4861e256deb62466aeade6777f2bf74201.tar.gz |
Add a -static way, enabled only if dynlibs are used by default
Diffstat (limited to 'testsuite/mk')
-rw-r--r-- | testsuite/mk/ghc-config.hs | 1 | ||||
-rw-r--r-- | testsuite/mk/test.mk | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/mk/ghc-config.hs b/testsuite/mk/ghc-config.hs index 5ab49eb1ce..77efbcd95c 100644 --- a/testsuite/mk/ghc-config.hs +++ b/testsuite/mk/ghc-config.hs @@ -22,6 +22,7 @@ main = do getGhcField fields "GhcUnregisterised" "Unregisterised" getGhcField fields "GhcWithSMP" "Support SMP" getGhcField fields "GhcRTSWays" "RTS ways" + getGhcField fields "GhcDynamicByDefault" "Dynamic by default" getGhcFieldProgWithDefault fields "AR" "ar command" "ar" let pkgdb_flag = case lookup "Project version" fields of diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk index 6fc9afa626..882ae6036f 100644 --- a/testsuite/mk/test.mk +++ b/testsuite/mk/test.mk @@ -80,6 +80,12 @@ else RUNTEST_OPTS += -e ghc_unregisterised=0 endif +ifeq "$(GhcDynamicByDefault)" "YES" +RUNTEST_OPTS += -e ghc_dynamic_by_default=1 +else +RUNTEST_OPTS += -e ghc_dynamic_by_default=0 +endif + ifeq "$(GhcWithSMP)" "YES" RUNTEST_OPTS += -e ghc_with_smp=1 else |