|
From: Wesley W. T. <we...@te...> - 2002-01-29 17:45:28
|
I ported libst to Darwin (MacOS X) yesterday (wanted my application to run on it). Here's the patch. Crazy linker options hey? They work and appear to be consistent with the MacOS linker documentation and porting web pages I looked at. I'm not actually sure about the serialized accept, but it is roughly bsd, so it's probably right. Also, there is no 'poll.h' for Darwin so I ripped the needed defitions and wrapped them in an ifdef. Finally, I also fixed a dependency problem in the Makefile that was my fault. :-) Advantages: Compiles fine as a native MacOS X library Disadvantages: There might be other platforms where #if defined(__MACH__) && defined(__APPLE__) comes out true and thus the headers will conflict with the system. I'm don't run MacOS myself; I did this port while visiting a friend and the test programs and my own app ran so it seems to work, but it is hardly well tested. Documentation: CONFIG_GUESS_PATH=...; make default or make darwin-optimized PS. A friend of mine is looking into making a 'fink' package out of it. -- Wesley W. Terpstra <we...@te...> |