···11-This is for developers only.
22-33-For more information, see the website:
44-http://www.darlinghq.org/news/rethinking-the-libsystem-approach
55-
+42
README.md
···11+This is a rework of Darling, which will greatly improve compatibility with OS X applications.
22+33+The i386 build is still lagging behind due to some missing important assembly around threading. You only need it to run 32-bit binaries though.
44+55+Courageous users may proceed with the build instructions below.
66+77+For x86-64 OS X binaries:
88+````
99+cd darling
1010+mkdir -p build/x86-64
1111+CC=clang CXX=clang++ cmake ../.. -DCMAKE_INSTALL_LIBDIR=lib64
1212+make
1313+make install
1414+1515+# Now we go into src/lkm to build the kernel module
1616+cd ../../src/lkm
1717+make
1818+make install
1919+````
2020+2121+For i386 OS X binaries:
2222+````
2323+cd darling
2424+mkdir -p build/i386
2525+CC=clang CXX=clang++ cmake ../.. -DCMAKE_INSTALL_LIBDIR=lib32
2626+make
2727+make install
2828+````
2929+3030+Loading the kernel module:
3131+````
3232+modprobe darling-mach
3333+3434+# ATTENTION: The kernel module is likely unstable,
3535+# full of vulnerabilities, etc.
3636+# You SHOULD restrict access to /dev/mach to trusted
3737+# users only and be prepared to the eventuality of
3838+# kernel hangups (and related data loss).
3939+4040+chmod a+rw /dev/mach
4141+````
4242+