[Prev][Next][Index][Thread]

Re: [PATCH] Wrong #ifdefs in OSKit's linux glue code



This patch to the current oskit's configure.in (your line numbers will not
match) adds the --enable-indirect-osenv option to configure that will
define INDIRECT_OSENV when compiling the oskit code.  Run autoconf in your
oskit source directory after applying this patch, and then rerun configure
in your build directory.  The automatic dependencies don't notice this
flags change, so you'll have to make clean (or selectively remove the
object files affected by the #ifdef) before you rebuild.

This is necessary to use the oskit's device driver libraries with any oskit
kernel that uses any of its own environmental facilities instead of only
oskit base library code (e.g. oskit-mach).


Index: configure.in
===================================================================
RCS file: /usr/lsrc/flux/CVS/oskit/configure.in,v
retrieving revision 1.149
diff -b -u -r1.149 configure.in
--- configure.in   2001/03/09 19:17:58	1.149
+++ configure.in   2001/08/26 22:05:12
@@ -638,6 +638,12 @@
 [if test $enableval = yes; then enableval=300; fi]
 [OSKIT_DEFS="$OSKIT_DEFS -DLINUX_BOGOMIPS=$enableval"]
 [oskit_options="linux-bogomips=$enableval $oskit_options"])
+
+flux_ARG_ENABLE(indirect-osenv,
+[  --enable-indirect-osenv internal debugging features and sanity checks],
+[OSKIT_DEFS="$OSKIT_DEFS -DINDIRECT_OSENV=1"]
+[oskit_options="indirect_osenv $oskit_options"])
+
 
 outfiles="$outfiles Makeconf GNUmakefile
 unsupported/scripts/gcc-driver-script"
 outfiles="$outfiles unsupported/scripts/sym-trace"

References: