oss4-netbsd / setup / srcconf_netbsd.inc

#define HAVE_SYSDEP
#define HAVE_KERNEL_FLAGS
static void
check_sysdep (conf_t * conf, struct utsname *un)
{
  strcpy (conf->cplusplus, "g++ -fno-rtti -fno-exceptions -I.");
  strcpy (conf->platform, "i86pc");
}

static void
add_kernel_flags (FILE * f)
{
  fprintf (f, "CFLAGS += ");
  fprintf (f, "-ffreestanding ");
//  fprintf (f, "-nostdinc -isystem /usr/ddk/include ");
//  fprintf (f, "-isystem /usr/include ");
# if defined(__x86_64__)
  fprintf (f, "-mcmodel=kernel -mno-red-zone ");
# endif
  fprintf (f, "-nostdinc -isystem /usr/ddk/include ");
  fprintf (f, "-isystem /usr/include ");
  fprintf (f, "\n");
}

static void
netbsd_genheader(FILE *f, char *path)
{
  fprintf (f, "\n");
  fprintf (f, "CFLAGS += ");
  fprintf (f, "-g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -fno-strict-aliasing -Wno-pointer-sign ");
#if 0
  fprintf (f, "-Wa,--fatal-warnings  -Werror ");
#endif
  fprintf (f, "-nostdinc -isystem /usr/ddk/include ");
  fprintf (f, "-isystem /usr/include ");
  fprintf (f, "\n");
}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.