summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-08-16 14:33:57 +0100
committerZubin <zubin.duggal@gmail.com>2021-09-28 08:29:07 +0000
commitf981319fb1cb4075f6f26007b098d9b0bde66bf8 (patch)
tree36538b2b5fb685a385e6c621fea5d7755d90e1f9
parent67683142f1e0d9f95bc1be0306b676b5d2e4e97f (diff)
downloadhaskell-wip/overflow-set-9.0.tar.gz
Add -Wl,-U,___darwin_check_fd_set_overflow to rts/package.conf.inwip/overflow-set-9.0
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)
-rw-r--r--rts/package.conf.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/package.conf.in b/rts/package.conf.in
index 718fa1b203..eba090df8d 100644
--- a/rts/package.conf.in
+++ b/rts/package.conf.in
@@ -314,8 +314,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)