Reputation: 5345
I am trying to build the open source DYLD, published by Apple here:
http://www.opensource.apple.com/source/dyld/dyld-97.1/
I copied down every single file and tried building the XCode project, but am stuck on a missing file.
i686-apple-darwin11-llvm-g++-4.2: /usr/local/lib/system/libc.a: No such file or directory
I checked the XCode project settings and this flag is being specifically set, yet there is no such file anywhere on my filesystem. There is a libc.dylib however.
From other posts I have read it seems that Mac OS X usually doesn't use this libc.a file, and yet it is referenced by this project.
Does anyone know where I can get this file or why it is used?
Thanks!
Upvotes: 6
Views: 2091
Reputation: 25513
You can also get the source for libc from apple open source. You should be able to compile the static library with this.
Upvotes: 0
Reputation: 299285
Pull libc from http://www.opensource.apple.com/source/Libc/ and build the static form. You may wind up having to build the full LibSystem and use its build-libc.pl script, depending on what you're trying to do with this.
Upvotes: 2