File ghc-pie.patch of Package ghc

Index: ghc-8.0.2/compiler/main/DynFlags.hs
===================================================================
--- ghc-8.0.2.orig/compiler/main/DynFlags.hs
+++ ghc-8.0.2/compiler/main/DynFlags.hs
@@ -3650,6 +3650,7 @@ default_PIC :: Platform -> [GeneralFlag]
 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
openSUSE Build Service is sponsored by