diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-05-03 21:08:42 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-05-03 21:08:42 +0400 |
commit | 1058def8e7827e56ce4a70afb4aeacb5dc44148f (patch) | |
tree | 4495d23e7b54ab5700e3839081e797c1eafe0db9 /setup/srcconf_beos.inc | |
download | oss4-upstream/4.2-build2006.tar.gz |
Imported Upstream version 4.2-build2006upstream/4.2-build2006upstream
Diffstat (limited to 'setup/srcconf_beos.inc')
-rw-r--r-- | setup/srcconf_beos.inc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/setup/srcconf_beos.inc b/setup/srcconf_beos.inc new file mode 100644 index 0000000..8083e50 --- /dev/null +++ b/setup/srcconf_beos.inc @@ -0,0 +1,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"); +} |