MacOS ld warning: -undefined dynamic_lookup may not work with chained fixups
Getting a linker warning after upgrading to MacOS Monterey (12.6). Repro steps:
- Create empty
Bar.hs
module (module Bar where
) - Run
ghc -shared Bar.hs
[1 of 1] Compiling Bar ( Bar.hs, Bar.o )
Linking a.out ...
ld: warning: -undefined dynamic_lookup may not work with chained fixups
Artifacts still seem to work, but it would be nice to resolve (or hide?) the warning.
From the man page:
-undefined treatment
Specifies how undefined symbols are to be treated. Options are: error, warning,
suppress, or dynamic_lookup. The default is error. Note: dynamic_lookup that
depends on lazy binding will not work with chained fixups.