From: sean Date: Fri, 17 Oct 2008 03:06:32 +0000 (+0000) Subject: Fixed a few build script issues on posix, including a bug in looking for some of... X-Git-Url: https://git.llucax.com/software/druntime.git/commitdiff_plain/0edf44cfdbe2262d5c50bfa7368ba2692600babc Fixed a few build script issues on posix, including a bug in looking for some of the core modules in the wrong place, and a hack to eliminate filename collision with the dmd compiler runtime. This latter issue really needs to be addressed in a better way, but at this point my priority is just to get the build working. git-svn-id: http://svn.dsource.org/projects/druntime/trunk@32 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f --- diff --git a/src/common/core/thread.d b/src/common/core/thread.d index 326b3aa..7c27bf2 100644 --- a/src/common/core/thread.d +++ b/src/common/core/thread.d @@ -157,6 +157,7 @@ else version( Posix ) import stdc.posix.time; import stdc.errno; + extern (C) int getErrno(); version( GNU ) { import gcc.builtins; diff --git a/src/common/posix.mak b/src/common/posix.mak index c2e8e8a..59d4ee0 100644 --- a/src/common/posix.mak +++ b/src/common/posix.mak @@ -71,7 +71,7 @@ doc : core.doc OBJ_CORE= \ core/bitmanip.o \ core/exception.o \ - core/memory.o \ + core/memory_.o \ core/runtime.o \ core/thread.o @@ -110,12 +110,17 @@ core.doc : $(ALL_DOCS) ### bitmanip core/bitmanip.o : core/bitmanip.d - $(DC) -c $(DFLAGS) bitmanip.d -of$@ + $(DC) -c $(DFLAGS) core/bitmanip.d -of$@ + +### memory + +core/memory_.o : core/memory.d + $(DC) -c $(DFLAGS) -Hf$*.di $< -of$@ ### thread core/thread.o : core/thread.d - $(DC) -c $(DFLAGS) -d -Hf$*.di thread.d -of$@ + $(DC) -c $(DFLAGS) -d -Hf$*.di core/thread.d -of$@ ######################################################