summaryrefslogtreecommitdiff
path: root/testsuite/tests/rts/unload_multiple_objs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rts/unload_multiple_objs/Makefile')
-rw-r--r--testsuite/tests/rts/unload_multiple_objs/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/tests/rts/unload_multiple_objs/Makefile b/testsuite/tests/rts/unload_multiple_objs/Makefile
new file mode 100644
index 0000000000..70046c07dd
--- /dev/null
+++ b/testsuite/tests/rts/unload_multiple_objs/Makefile
@@ -0,0 +1,17 @@
+TOP=../../..
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/test.mk
+
+.PHONY: linker_unload_multiple_objs
+linker_unload_multiple_objs:
+ $(RM) A.o B.o C.o D.o
+ $(RM) A.hi B.hi C.hi D.hi
+ "$(TEST_HC)" $(TEST_HC_OPTS) -c A.hs -v0
+ "$(TEST_HC)" $(TEST_HC_OPTS) -c B.hs -v0
+ "$(TEST_HC)" $(TEST_HC_OPTS) -c C.hs -v0
+ "$(TEST_HC)" $(TEST_HC_OPTS) -c D.hs -v0
+ # -rtsopts causes a warning
+ "$(TEST_HC)" LinkerUnload.hs -package ghc $(filter-out -rtsopts, $(TEST_HC_OPTS)) linker_unload_multiple_objs.c -o linker_unload_multiple_objs -no-hs-main -optc-Werror
+ ./linker_unload_multiple_objs "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
+
+