<div dir="ltr">Hi everyone,<div><br></div><div>I'm trying to ensure that beginner-level code that uses reflex-dom can be built by simply calling 'ghc myFile.hs', provided that all the necessary libraries are available in ghc-pkg.  This works on linux, but on macOS, it's currently necessary for the user to add '-dynamic' to the command line.  In particular, without -dynamic, the linker fails to find "_OBJC_CLASS_$_NSURL", which is a symbol in the Foundation system framework.  Apple doesn't support (and strongly discourages) statically linked executables[1], so it's not terribly surprising that this doesn't work.<div><br></div><div>Is there anything I can do to avoid the need for -dynamic here?</div><div><br></div><div><br></div><div>Thanks,</div><div>Ryan</div><div><br></div><div>[1] <a href="https://developer.apple.com/library/content/qa/qa1118/_index.html">https://developer.apple.com/library/content/qa/qa1118/_index.html</a></div></div></div>