[Ecls-list] build broken on NetBSD

Jachym Holecek freza at psi.cz
Fri Mar 18 23:05:58 UTC 2005


Hi,

the diff below:

1) Makes ECL compile again after recent gmp import (I'm pretty sure this
   is _not_ the right fix, but digging through that autoconf stuff makes
   my eyes hurt too much ;-)

2) Makes ECL compile on NetBSD/sparc64

	Regards,
		-- Jachym Holecek

[As a side note, ECL startup time on the sparc64 box is wonderful 15s.
 Unfortunately, gprof doesn't provide information I'd like to see, so
 I'll have to find out the hard way -- don't expect much before I get
 holiday...
 
 One (obvious?) observation is that ecl_min doesn't suffer the problem.]

Index: src/compile.lsp.in
===================================================================
RCS file: /cvsroot/ecls/ecls/src/compile.lsp.in,v
retrieving revision 1.54
diff -u -r1.54 compile.lsp.in
--- src/compile.lsp.in	18 Feb 2005 14:27:46 -0000	1.54
+++ src/compile.lsp.in	19 Mar 2005 06:34:32 -0000
@@ -36,7 +36,7 @@
 ;;;   with an already installed copy of ECL.
 ;;;
 (setq c::*cc-flags*
-      #-msvc "@CFLAGS@ @ECL_CFLAGS@ -I\"@true_srcdir@\"/h -I\"@true_srcdir@\"/gmp -I\"@true_builddir@\"/h"
+      #-msvc "@CFLAGS@ @ECL_CFLAGS@ -I\"@true_srcdir@\"/h -I\"@true_builddir@\"/include -I\"@true_builddir@\"/h"
       #+msvc "@CFLAGS@ @ECL_CFLAGS@ -I\"@true_srcdir@\"/h -I\"@true_builddir@\"/h"
       c::*cc-format*
       #-msvc "~A ~A ~:[~*~;~A~] -I\"@true_builddir@\"/h~* -w -c ~S -o ~S"
Index: src/gc/os_dep.c
===================================================================
RCS file: /cvsroot/ecls/ecls/src/gc/os_dep.c,v
retrieving revision 1.7
diff -u -r1.7 os_dep.c
--- src/gc/os_dep.c	11 Mar 2005 09:38:49 -0000	1.7
+++ src/gc/os_dep.c	19 Mar 2005 06:38:41 -0000
@@ -3950,13 +3950,17 @@
 #      if defined (DRSNX)
 #	 include <sys/sparc/frame.h>
 #      else
-#	 if defined(OPENBSD) || defined(NETBSD)
+#	 if defined(OPENBSD)
 #	   include <frame.h>
 #	 else
 #	   if defined(FREEBSD)
 #	     include <machine/frame.h>
 #	   else
-#	     include <sys/frame.h>
+#	     if defined(NETBSD)
+#	       include <sparc/frame.h>
+#	     else
+#	       include <sys/frame.h>
+#	     endif
 #	   endif
 #	 endif
 #      endif




More information about the ecl-devel mailing list