Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building DYLD from apple's source

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!

like image 326
Locksleyu Avatar asked Feb 15 '12 13:02

Locksleyu


1 Answers

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.

like image 51
Rob Napier Avatar answered Sep 29 '22 23:09

Rob Napier