OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc?expand=0&rev=357
13 lines
696 B
Diff
13 lines
696 B
Diff
Index: ghc-8.10.5/compiler/main/DynFlags.hs
|
|
===================================================================
|
|
--- ghc-8.10.5.orig/compiler/main/DynFlags.hs
|
|
+++ ghc-8.10.5/compiler/main/DynFlags.hs
|
|
@@ -4651,6 +4651,7 @@ default_PIC platform =
|
|
-- while we could work around this on x86_64 (like WINE does), we won't be
|
|
-- able on aarch64, where this is enforced.
|
|
(OSDarwin, ArchX86_64) -> [Opt_PIC]
|
|
+ (OSLinux, ArchX86_64) -> [Opt_PIC]
|
|
-- For AArch64, we need to always have PIC enabled. The relocation model
|
|
-- on AArch64 does not permit arbitrary relocations. Under ASLR, we can't
|
|
-- control much how far apart symbols are in memory for our in-memory static
|