summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/tests/ghci/linking/dyn/Makefile2
-rw-r--r--testsuite/tests/ghci/linking/dyn/T10955dyn.stderr4
-rw-r--r--testsuite/tests/ghci/linking/dyn/load_short_name.stderr2
3 files changed, 7 insertions, 1 deletions
diff --git a/testsuite/tests/ghci/linking/dyn/Makefile b/testsuite/tests/ghci/linking/dyn/Makefile
index ee345e5560..ee53d0463e 100644
--- a/testsuite/tests/ghci/linking/dyn/Makefile
+++ b/testsuite/tests/ghci/linking/dyn/Makefile
@@ -24,7 +24,7 @@ else
CFLAGS = -fPIC
endif
-MY_TEST_HC_OPTS = $(filter-out -rtsopts,$(TEST_HC_OPTS)) $(CFLAGS)
+MY_TEST_HC_OPTS = $(TEST_HC_OPTS) $(CFLAGS)
# --------------------------------------------------------------
# Note: libAS.def is not used directly in these tests but is
diff --git a/testsuite/tests/ghci/linking/dyn/T10955dyn.stderr b/testsuite/tests/ghci/linking/dyn/T10955dyn.stderr
new file mode 100644
index 0000000000..e69dbaad75
--- /dev/null
+++ b/testsuite/tests/ghci/linking/dyn/T10955dyn.stderr
@@ -0,0 +1,4 @@
+Warning: -rtsopts and -with-rtsopts have no effect with -shared.
+ Call hs_init_ghc() from your main() function to set these options.
+Warning: -rtsopts and -with-rtsopts have no effect with -shared.
+ Call hs_init_ghc() from your main() function to set these options.
diff --git a/testsuite/tests/ghci/linking/dyn/load_short_name.stderr b/testsuite/tests/ghci/linking/dyn/load_short_name.stderr
new file mode 100644
index 0000000000..cd2812b10c
--- /dev/null
+++ b/testsuite/tests/ghci/linking/dyn/load_short_name.stderr
@@ -0,0 +1,2 @@
+Warning: -rtsopts and -with-rtsopts have no effect with -shared.
+ Call hs_init_ghc() from your main() function to set these options.