summaryrefslogtreecommitdiff
path: root/ghc-pie.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-28 09:59:10 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-28 09:59:10 +0000
commitb02e7abee55d6e9e31efa2fc9f3df455ca9c9f1d (patch)
tree4d726cdf3e5fc4329489fd1a3645cc1c5e4e20a3 /ghc-pie.patch
parent1cc8798baf9426f821b4f887f2914eac62e3ecd8 (diff)
automatic import of ghcopeneuler23.03
Diffstat (limited to 'ghc-pie.patch')
-rw-r--r--ghc-pie.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/ghc-pie.patch b/ghc-pie.patch
new file mode 100644
index 0000000..30a478b
--- /dev/null
+++ b/ghc-pie.patch
@@ -0,0 +1,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]