File ghc-pie.patch of Package ghc-prepare-binary-distributions

Index: ghc-9.2.5/compiler/GHC/Driver/Session.hs
===================================================================
--- ghc-9.2.5.orig/compiler/GHC/Driver/Session.hs
+++ ghc-9.2.5/compiler/GHC/Driver/Session.hs
@@ -3760,6 +3760,7 @@ default_PIC platform =
     -- This requires PIC on AArch64, and ExternalDynamicRefs on Linux as on top
     -- 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]
openSUSE Build Service is sponsored by