summaryrefslogtreecommitdiff
path: root/setup/srcconf_beos.inc
blob: 8083e502fc8fe4d15926a9bc8d820997895e2252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#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.");

  /* fixup machine names */
  if (strcmp (un->machine, "BePC") == 0)
    {
      strcpy (conf->arch, "i586");
    }
  if (strcmp (un->machine, "BePC") == 0 ||
      strcmp (un->machine, "i386") == 0 ||
      strcmp (un->machine, "i486") == 0 ||
      strcmp (un->machine, "i586") == 0 || strcmp (un->machine, "i686") == 0)
    {
      strcpy (conf->platform, "i86pc");
    }
  if (strcmp (un->machine, "BeMac") == 0 ||
      strcmp (un->machine, "BeBox") == 0)
    {
      /* seems to be what Linux uses */
      /* XXX: check for ppc64 ? */
      strcpy (conf->arch, "ppc");
      strcpy (conf->platform, "ppc");
    }
}

static void
add_kernel_flags (FILE * f)
{
  fprintf (f, "CFLAGS=-O2 -D_KERNEL -D_KERNEL_MODE=1 -no-fpic\n");
}