summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-08-16 14:33:57 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-08-19 18:02:48 -0400
commitad28ae41206e3a8b483b067a8e3333df445010b6 (patch)
tree37a2d74191b40759c7633e2a625610b92f519482
parentd43442cb8f64449343be2f5516f141ef027b9e99 (diff)
downloadhaskell-ad28ae41206e3a8b483b067a8e3333df445010b6.tar.gz
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)
-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 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)