File ghc-pie.patch of Package ghc

Index: ghc-8.10.7/compiler/main/DynFlags.hs
===================================================================
--- ghc-8.10.7.orig/compiler/main/DynFlags.hs
+++ ghc-8.10.7/compiler/main/DynFlags.hs
@@ -4659,6 +4659,7 @@ default_PIC platform =
     -- of that.  Subsequently we expect all code on aarch64/linux (and macOS) to
     -- be built with -fPIC.
     -- See #15275, #18892
+    (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