summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-08-16 14:33:57 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2021-08-18 08:28:48 +0000
commit4e10e86c0c397f380b413404d8f72abd1552f529 (patch)
tree4c0435a989d182541f3b316a3511e6a5b1a7930b
parentacb188e0c02a114927d340dac78a68626c659cd3 (diff)
downloadhaskell-wip/overflow-set-master.tar.gz
Add -Wl,-U,___darwin_check_fd_set_overflow to rts/package.conf.inwip/overflow-set-master
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)