]> git.llucax.com Git - software/druntime.git/commitdiff
Fixed a few build script issues on posix, including a bug in looking for some of...
authorsean <sean@4a9d5153-6564-4b3f-b5e1-7e8e9dac548f>
Fri, 17 Oct 2008 03:06:32 +0000 (03:06 +0000)
committersean <sean@4a9d5153-6564-4b3f-b5e1-7e8e9dac548f>
Fri, 17 Oct 2008 03:06:32 +0000 (03:06 +0000)
git-svn-id: http://svn.dsource.org/projects/druntime/trunk@32 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f

src/common/core/thread.d
src/common/posix.mak

index 326b3aa2d3bc36a6e2ab842094c6740ade013269..7c27bf2004019af3f3aed6f096f18f3797eb5c77 100644 (file)
@@ -157,6 +157,7 @@ else version( Posix )
         import stdc.posix.time;
         import stdc.errno;
 
+        extern (C) int getErrno();
         version( GNU )
         {
             import gcc.builtins;
index c2e8e8ade06d15a9358103a8c95c4469f77162ad..59d4ee0a7c23068e3342a8c732a5db612f38c47d 100644 (file)
@@ -71,7 +71,7 @@ doc     : core.doc
 OBJ_CORE= \\r
     core/bitmanip.o \\r
     core/exception.o \\r
-    core/memory.o \\r
+    core/memory_.o \\r
     core/runtime.o \\r
     core/thread.o\r
 \r
@@ -110,12 +110,17 @@ core.doc : $(ALL_DOCS)
 ### bitmanip\r
 \r
 core/bitmanip.o : core/bitmanip.d\r
-       $(DC) -c $(DFLAGS) bitmanip.d -of$@\r
+       $(DC) -c $(DFLAGS) core/bitmanip.d -of$@\r
+\r
+### memory\r
+\r
+core/memory_.o : core/memory.d\r
+       $(DC) -c $(DFLAGS) -Hf$*.di $< -of$@\r
 \r
 ### thread\r
 \r
 core/thread.o : core/thread.d\r
-       $(DC) -c $(DFLAGS) -d -Hf$*.di thread.d -of$@\r
+       $(DC) -c $(DFLAGS) -d -Hf$*.di core/thread.d -of$@\r
 \r
 ######################################################\r
 \r