This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling a Linux 2.4.0 kernel with 2.96?
- To: gcc <gcc at gcc dot gnu dot org>
- Subject: Re: Compiling a Linux 2.4.0 kernel with 2.96?
- From: brent verner <brent at rcfile dot org>
- Date: Fri, 14 Jul 2000 00:51:52 -0400
- References: <20000714032630.A5244@Jeffreys.suse.de>
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_