driver: use interpreterDynamic predicate in preloadLib
This commit use the interpreterDynamic predicate in preloadLib to decide if we should do dynLoadObjs instead of loadObj. Previously we used hostIsDynamic which was only written with non-cross internal interpreter in mind. The testsuite is also adjusted to remove hard-wired -fPIC flag for cbits (doesn't work in i386 RTS linker in vanilla way, #25260) and properly pass ghc_th_way_flags to ghc. (cherry picked from commit 80aa8983)
Showing
- compiler/GHC/Linker/Loader.hs 2 additions, 2 deletionscompiler/GHC/Linker/Loader.hs
- testsuite/tests/quasiquotation/Makefile 3 additions, 3 deletionstestsuite/tests/quasiquotation/Makefile
- testsuite/tests/quasiquotation/all.T 1 addition, 1 deletiontestsuite/tests/quasiquotation/all.T
- testsuite/tests/th/all.T 1 addition, 1 deletiontestsuite/tests/th/all.T
Loading
Please register or sign in to comment