2018-05-14 13:15:35 +00:00
|
|
|
Index: ghc-8.4.0.20180204/compiler/main/DynFlags.hs
|
2017-05-08 16:26:07 +00:00
|
|
|
===================================================================
|
2018-05-14 13:15:35 +00:00
|
|
|
--- ghc-8.4.0.20180204.orig/compiler/main/DynFlags.hs
|
|
|
|
+++ ghc-8.4.0.20180204/compiler/main/DynFlags.hs
|
|
|
|
@@ -4155,6 +4155,7 @@ default_PIC :: Platform -> [GeneralFlag]
|
2017-05-08 16:26:07 +00:00
|
|
|
default_PIC platform =
|
|
|
|
case (platformOS platform, platformArch platform) of
|
|
|
|
(OSDarwin, ArchX86_64) -> [Opt_PIC]
|
|
|
|
+ (OSLinux, ArchX86_64) -> [Opt_PIC]
|
|
|
|
(OSOpenBSD, ArchX86_64) -> [Opt_PIC] -- Due to PIE support in
|
|
|
|
-- OpenBSD since 5.3 release
|
|
|
|
-- (1 May 2013) we need to
|