Re: 2.1.3x/4x - glibc2 compilation problems

Martin von Loewis (martin@mira.isdn.cs.tu-berlin.de)
Sat, 31 May 1997 00:00:35 +0200


> I've tried to compile some recent 2.1.x kernels (2.1.38 to 41) without
> success - is there a problem with 2.1.x kernels and glibc (I'm running
> glibc 2.0.3, binutils 2.8, gcc 2.7.2.1, make 3.75.1)?
[...]
> gcc -D__KERNEL__ -I/usr/src/linux-2.1.41/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -x c++ -D__SMP__ -pipe -fno-strength-reduce -m386 -DCPU=386 -m486 -DCPU=486 -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -D__SMP__ -c -o init/main.o init/main.c

Where the heck does the '-x c++' come from? The kernel sources are not
supposed to be compiled as C++. For me, the init/main.c compile command
looks like

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -DCPU=486 -c -o init/main.o init/main.c

Regards,
Martin