I am fairly unfamiliar with static linking in any language, but I'm trying to statically link a Haskell program for usage on other macs. I've managed to statically link on Linux and confirm it to be working on other Linux boxes by using these options: -O2 -static -optl-static -optl-pthread
When I try to use those options on OS X, I get the following error:
ld: library not found for -lcrt0.o
collect2: ld returned 1 exit status
Any idea what is up? Am I doing something completely nuts?