diff options
Diffstat (limited to 'testsuite/tests/package/T20010/Makefile')
-rw-r--r-- | testsuite/tests/package/T20010/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/package/T20010/Makefile b/testsuite/tests/package/T20010/Makefile new file mode 100644 index 0000000000..9343836a5e --- /dev/null +++ b/testsuite/tests/package/T20010/Makefile @@ -0,0 +1,18 @@ +TOP=../../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +T20010: + '$(TEST_HC)' $(TEST_HC_OPTS) -c T20010.hs + '$(TEST_HC)' $(TEST_HC_OPTS) -c T20010_c.cpp + '$(TEST_HC)' $(TEST_HC_OPTS) -package system-cxx-std-lib T20010_c.o T20010.o -o T20010 + ./T20010 + +T20010-ghci: + '$(TEST_HC)' $(TEST_HC_OPTS) -c T20010.hs + # We must build with PIC lest we end up with R_X86_64_32 relocations in + # .rodata which precludes linking into a shared object and therefore loading + # in GHCi + '$(TEST_HC)' $(TEST_HC_OPTS) -c -fPIC T20010_c.cpp + '$(TEST_HC)' $(TEST_HC_OPTS_INTERACTIVE) -package system-cxx-std-lib T20010_c.o <T20010-ghci.script + |