~ubuntu-branches/ubuntu/oneiric/oss4/oneiric-proposed

« back to all changes in this revision

Viewing changes to setup/srcconf_freebsd.inc

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Rivera
  • Date: 2011-06-16 20:37:48 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110616203748-jbrxik6ql33z54co
Tags: 4.2-build2004-1ubuntu1
* Merge from Debian unstable.
  - Supports our current kernel (LP: #746048)
  Remaining changes:
  - debian/oss4-dkms.dkms.in: s/source/build/ in Kernel headers paths.
* ld-as-needed.patch: Re-order CC arguments to enable building with ld
  --as-needed (LP: #770972)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#define HAVE_SYSDEP
 
2
#define HAVE_KERNEL_FLAGS
 
3
static void
 
4
check_sysdep (conf_t * conf, struct utsname *un)
 
5
{
 
6
  strcpy (conf->cplusplus, "g++ -fno-rtti -fno-exceptions -I.");
 
7
  strcpy (conf->platform, "i86pc");
 
8
}
 
9
 
 
10
static void
 
11
add_kernel_flags (FILE * f)
 
12
{
 
13
# if defined(__x86_64__)
 
14
  fprintf (f,
 
15
             "CFLAGS += -O3 -fno-common  -mcmodel=kernel -mno-red-zone  -fno-asynchronous-unwind-tables -ffreestanding\n");
 
16
# endif
 
17
}