summaryrefslogtreecommitdiff
path: root/ghc-pie.patch
blob: 30a478b40818e7cc95f5d98d2ffd82f88de7dd82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Index: ghc-9.4.4/compiler/GHC/Driver/Session.hs
===================================================================
--- ghc-9.4.4.orig/compiler/GHC/Driver/Session.hs
+++ ghc-9.4.4/compiler/GHC/Driver/Session.hs
@@ -3870,6 +3870,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]