From 4e10e86c0c397f380b413404d8f72abd1552f529 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Mon, 16 Aug 2021 14:33:57 +0100 Subject: Add -Wl,-U,___darwin_check_fd_set_overflow to rts/package.conf.in The make build system apparently uses this special package.conf rather than generating it from the cabal file. Ticket: #19950 (cherry picked from commit e316a0f3e7a733fac0c30633767487db086c4cd0) --- rts/package.conf.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rts/package.conf.in b/rts/package.conf.in index 50a372b2f0..bc24614085 100644 --- a/rts/package.conf.in +++ b/rts/package.conf.in @@ -310,8 +310,12 @@ ld-options: * path. This is important to use the static gmp in preference on Mac OS. * The used option is specific to the Darwin linker. */ +/* + * See Note [fd_set_overflow] +*/ #if defined(darwin_HOST_OS) , "-Wl,-search_paths_first" + , "-Wl,-U,___darwin_check_fd_set_overflow" #endif #if defined(darwin_HOST_OS) && !defined(x86_64_HOST_ARCH) && !defined(aarch64_HOST_ARCH) -- cgit v1.2.1