Use of -dead_strip_dylibs by default makes the -framework flag appear broken.

Ben Gamari ben at
Mon Jun 18 22:49:48 UTC 2018

Travis Whitaker <pi.boy.travis at> writes:

> Hello Haskell Friends,
Hi Travis,

This behavior was introduced in
to mitigate macOS's very restrictive linker command limit (which limits
the number of direct dependencies that an object may have; see #14444).

Perhaps it would help if we omitted -dead_strip_dylibs when doing the
final link of an executable? This would allow the user to specify the
-framework flags during the final link, (presumably) ensuring that they
are linked in untouched.

I'm sure Moritz will have insightful to add here.


- Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <>

More information about the ghc-devs mailing list