summaryrefslogtreecommitdiff
path: root/testsuite/tests/cabal/cabal04/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/cabal/cabal04/Makefile')
-rw-r--r--testsuite/tests/cabal/cabal04/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/tests/cabal/cabal04/Makefile b/testsuite/tests/cabal/cabal04/Makefile
new file mode 100644
index 0000000000..34845ff642
--- /dev/null
+++ b/testsuite/tests/cabal/cabal04/Makefile
@@ -0,0 +1,26 @@
+TOP=../../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
+
+SETUP=./Setup -v0
+
+# This tests that we can build a Cabal package that uses TH with both
+# profiling and dynamic linking. (#3604)
+
+# omitting -rtsopts from --ghc-options avoids a warning from GHC when
+# building the shared library (-rtsopts has no effect with -shared)
+
+cabal04:
+ $(MAKE) clean
+ '$(TEST_HC)' -v0 --make Setup
+ $(SETUP) clean
+ $(SETUP) configure --with-ghc='$(TEST_HC)' --ghc-options='$(filter-out -rtsopts,$(TEST_HC_OPTS))' $(VANILLA) $(PROF) $(DYN)
+ $(SETUP) build 2> err
+ ! grep -v "Creating library file" err
+ifneq "$(CLEANUP)" ""
+ $(MAKE) clean
+endif
+
+clean :
+ $(RM) -r *.o *.hi dist Setup$(exeext) err
+