Building druntime on MAC OS X

Andrew Edwards ridimz at yahoo.com
Sat Nov 16 14:13:11 PST 2013


On 11/16/13, 12:59 PM, Martin Nowak wrote:
> On 11/16/2013 04:39 PM, Andrew Edwards wrote:
>> It is generated automatically from src/dmd.conf.default while building
>> dmd as such:
>>
>>       make -f posix.mak install
>>
> The install target is work in progress. We want to use this to build
> releases, but it's not ready yet.

What else is missing for the OS X build? After correcting the DFLAGS in 
dmd.conf, it performs as expected.


> The -lrt links in the Realtime Extensions library (librt) which is
> needed for some functions used by druntime (sched_*, sem_*).

Which, when built on Mac OS X, turns out to be -ldruntime-osxdefault.

I manually changed dmd.conf to:

      DFLAGS=-L-export_dynamic -I%@P%/../import -L-L%@P%/../lib 
-L-ldruntime-osxdefault

I've not experienced any issues since.


More information about the Digitalmars-d mailing list