Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions process.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,19 @@ library
cbits/posix/find_executable.c
other-modules: System.Process.Posix

-- On macOS, posix_spawn_file_actions_addchdir is available from macOS >= 26.
-- We weakly reference this symbol when we are build on such a platform.
-- However, weak references on MachO are hints to the dynamic loader, not the
-- static linker, which will still expect the symbol to be defined somewhere.
-- This means linking fails when we try to link an executable depending on
-- process on a toolchain which doesn't have this symbol against a process
-- library build on a toolchain with the symbol.
-- See https://github.com/haskell/process/issues/376
-- Hence: instruct the linker to explicilty allow undefined references to
-- the symbol when linking against process on darwin
if os(darwin)
ld-options: -Wl,-U,_posix_spawn_file_actions_addchdir

include-dirs: include
install-includes:
runProcess.h
Expand Down
Loading