termux-packages/packages/ghc-libs
Aditya Alok 3165e3c2f4
feat(ghc-libs): link against libandroid-posix-semaphore
GHC unix lib uses `ccall` ffi which ignores include indirection. It
directly links against available symbols during compile.

Although, directly linking to `libandroid-posix-semaphore` should work
too, but that depends upon library load order during runtime, i.e if
`libc` is loaded before (very unlikely, unless LD_PRELOAD is set)
`libandroid-posix-semaphore`, it would use sem_{open,close,unlink} from
it, which isn't implemented.

So, to be sure that it always links against `libandroid-posix-semaphore`
symbols, I have patched it to use `capi` ffi which considers include
indirections.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-11 19:47:18 +05:30
..
always_link_m.patch
always-use-pic-on-android-for-dynexec.patch
build.sh feat(ghc-libs): link against libandroid-posix-semaphore 2022-04-11 19:47:18 +05:30
correct-host-triplet.patch
fix-target-elf-check.patch
ghc.subpackage.sh
semaphore.patch feat(ghc-libs): link against libandroid-posix-semaphore 2022-04-11 19:47:18 +05:30
set-default-prefix.patch refactor(ghc-libs): rename ghc to ghc-libs 2022-03-09 10:01:57 +09:00
undefined_symbols.patch refactor(ghc-libs): rename ghc to ghc-libs 2022-03-09 10:01:57 +09:00
utils-extra-ghc-opts.patch