2023-02-02 13:42:05 +00:00
|
|
|
Index: ghc-9.2.3/compiler/GHC/Driver/Session.hs
|
2017-05-08 16:26:07 +00:00
|
|
|
===================================================================
|
2023-02-02 13:42:05 +00:00
|
|
|
--- ghc-9.2.3.orig/compiler/GHC/Driver/Session.hs
|
|
|
|
+++ ghc-9.2.3/compiler/GHC/Driver/Session.hs
|
|
|
|
@@ -3756,6 +3756,7 @@ default_PIC platform =
|
|
|
|
-- This requires PIC on AArch64, and ExternalDynamicRefs on Linux as on top
|
2021-09-07 15:04:09 +00:00
|
|
|
-- of that. Subsequently we expect all code on aarch64/linux (and macOS) to
|
|
|
|
-- be built with -fPIC.
|
|
|
|
+ (OSLinux, ArchX86_64) -> [Opt_PIC]
|
|
|
|
(OSDarwin, ArchAArch64) -> [Opt_PIC]
|
|
|
|
(OSLinux, ArchAArch64) -> [Opt_PIC, Opt_ExternalDynamicRefs]
|
|
|
|
(OSLinux, ArchARM {}) -> [Opt_PIC, Opt_ExternalDynamicRefs]
|