diff options
author | David Eichmann <EichmannD@gmail.com> | 2019-02-27 18:31:13 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-04-14 01:08:15 -0400 |
commit | 5f1830817b90960d5d11bee95a99df3e1425f8ab (patch) | |
tree | bc498b68451481e2a82834c909d990d041bc7b0e /testsuite/tests/dynlibs/Makefile | |
parent | 40848a43072768d5a0a41a1df05f7a8ffd85f345 (diff) | |
download | haskell-5f1830817b90960d5d11bee95a99df3e1425f8ab.tar.gz |
Hadrian: add rts shared library symlinks for backwards compatability
Fixes test T3807 when building with Hadrian.
Trac #16370
Diffstat (limited to 'testsuite/tests/dynlibs/Makefile')
-rw-r--r-- | testsuite/tests/dynlibs/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/dynlibs/Makefile b/testsuite/tests/dynlibs/Makefile index e3af7503e7..7201cfdbdb 100644 --- a/testsuite/tests/dynlibs/Makefile +++ b/testsuite/tests/dynlibs/Makefile @@ -9,6 +9,11 @@ T3807: $(RM) T3807-export.o T3807-load.o $(RM) T3807test.so $(RM) T3807-load + + # GHC does not automatically link with the RTS when building shared + # libraries. This is done to allow the RTS flavour to be chosen later (i.e. + # when linking an executable). + # Hence we must explicitly linking with the RTS here. '$(TEST_HC)' $(filter-out -rtsopts,$(TEST_HC_OPTS)) -v0 --make -dynamic -fPIC -shared T3807Export.hs T3807-export.c -o T3807test.so -lHSrts-ghc`'$(TEST_HC)' $(TEST_HC_OPTS) --numeric-version` '$(TEST_HC)' $(filter-out -rtsopts,$(TEST_HC_OPTS)) -no-auto-link-packages -no-hs-main T3807-load.c -o T3807-load -ldl ./T3807-load |