lli on cygwin - ERROR: Program used "some standard c" function which could not be found

I’ve tried using llvm 2.5 and svn version with both gcc3.4 and gcc-4.3.2. It apparently is not finding the most standard c functions.

I suspect this may be because they might live in cygwin.dll. Ins there any to force static linking.
Or is there any build recipies that might help?

See http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-March/021267.html .


Sorry the link doesn’t really help much.

See http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-March/021267.html .
I saw that post, dosen’t really help much.

  1. register them explicitly

What does register them explicitly mean?

  1. They should be available from some .DLL already preloaded into the binary.

Well I expect that they live in the static lib libc.a.
Thing is there are working ports , though I think they were done on mingw however which work but I need to link against the libs and those are not provided in the binary builds.