[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc
Subject:    Re: Compiling a Linux 2.4.0 kernel with 2.96?
From:       brent verner <brent () rcfile ! org>
Date:       2000-07-14 4:51:52
[Download RAW message or body]

On 14 Jul 2000 at 03:26 (+0200), Philipp Thomas wrote:
> Up 'till now I haven't been able to compile a working 2.4.0 kernel with the
> mainline compiler on ia32 (actually an Athlon) and always had to resort to
> 2.95.2 . So I'm curious if somebody did succeed in producing a working
> kernel.

The following worked for 2.2.16 kernel, so it _may_ work for > 2.3 as
well.

find this line in /usr/src/linux/Makefile,...

  # use '-fno-strict-aliasing', but only if the compiler can take it
  CFLAGS += $(shell if $(CC) -fno-strict-aliasing -S -o /dev/null -xc /dev/null \
>/dev/null 2>&1; then echo "-fno-strict-aliasing"; fi)

...and add this one

  CFLAGS += $(shell if $(CC) -fno-optimize-sibling-calls -S -o /dev/null -xc \
/dev/null >/dev/null 2>&1; then echo "-fno-optimize-sibling-calls"; fi)

hth.
  Brent

-- 
Damon Brent Verner                        o      _     _         _
Cracker Jack? Surprise Certified  _o     /\_   _ \\o  (_)\__/o  (_)
brent@rcfile.org                _< \_   _>(_) (_)/<_    \_| \   _|/' \/
brent@linux1.org               (_)>(_) (_)        (_)   (_)    (_)'  _\o_


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic