I'm trying to link to a static library on OS X. I used the -static
flag in the gcc command but I an error message:
ld_classic: can't locate file for: -lcrt0.o collect2: ld returned 1 exit status
I looked in the man pages and it reads something like:
This option will not work on Mac OS X unless all libraries (including libgcc.a) have also been compiled with -static. Since neither a static version of libSystem.dylib nor crt0.o are provided, this option is not useful to most people.
Is there another way to link to this static library?