I'am trying to build llvmdc on freebsd8/amd64.  make ldc works well
with following patch.but I can't make runtime. rt_stackBottom() in ldc/
runtime/internal/memory.d(91) can't compile.

diff -r cc6489f32519 dmd/mtype.c
--- a/dmd/mtype.c       Thu Mar 05 21:32:18 2009 +0100
+++ b/dmd/mtype.c       Fri Mar 06 17:22:32 2009 +0800
@@ -41,6 +41,9 @@
 static double zero = 0;
 #elif __MINGW32__
 static double zero = 0;
+#elif __FreeBSD__
+#include <math.h>
+static double zero = 0;
 #elif __GNUC__
 #if !(defined (__SVR4) && defined (__sun))
 #include <bits/nan.h>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "LDC 
- the LLVM D compiler" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ldc-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to