0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
termux-packages/packages/ghc-libs/always-use-pic-on-android-for-dynexec.patch
Aditya Alok ef9d15744e
ghc-libs: Bump to 9.2.5
- disable static splitting of package (see #1280)

Signed-off-by: Aditya Alok <alok@termux.dev>
2023-02-21 03:09:32 +05:30

16 lines
985 B
Diff

--- ghc.orig/compiler/GHC/Driver/Session.hs 2022-11-07 01:10:29.000000000 +0530
+++ ghc.mod/compiler/GHC/Driver/Session.hs 2022-11-10 13:12:21.825682472 +0530
@@ -3763,6 +3763,12 @@
(OSDarwin, ArchAArch64) -> [Opt_PIC]
(OSLinux, ArchAArch64) -> [Opt_PIC, Opt_ExternalDynamicRefs]
(OSLinux, ArchARM {}) -> [Opt_PIC, Opt_ExternalDynamicRefs]
+ (OSLinux, ArchX86) -> [Opt_PIC, Opt_ExternalDynamicRefs]
+ (OSLinux, ArchX86_64) -> [Opt_PIC, Opt_ExternalDynamicRefs]
+ (OSUnknown, ArchAArch64) -> [Opt_PIC, Opt_ExternalDynamicRefs]
+ (OSUnknown, ArchARM {}) -> [Opt_PIC, Opt_ExternalDynamicRefs]
+ (OSUnknown, ArchX86) -> [Opt_PIC, Opt_ExternalDynamicRefs]
+ (OSUnknown, ArchX86_64) -> [Opt_PIC, Opt_ExternalDynamicRefs]
(OSOpenBSD, ArchX86_64) -> [Opt_PIC] -- Due to PIE support in
-- OpenBSD since 5.3 release
-- (1 May 2013) we need to