-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkcpp
executable file
·11 lines (11 loc) · 1.02 KB
/
kcpp
1
2
3
4
5
6
7
8
9
10
11
p=`pwd`
cd /lib/modules/`uname -r`/build ; gcc -m32 -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KERNEL__ -Iinclude \
-include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing \
-fno-common -Werror-implicit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return \
-mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -maccumulate-outgoing-args \
-Iinclude/asm-x86/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-after-statement \
-Wno-pointer-sign -I/home/fox/src/dtrace/drivers/dtrace -I/home/fox/src/dtrace/drivers/dtrace/../.. \
-I/home/fox/src/dtrace/drivers/dtrace/../include -I/home/fox/src/dtrace/drivers/dtrace/../../linux \
-I/home/fox/src/dtrace/drivers/dtrace/../../common/ctf -I/home/fox/src/dtrace/drivers/dtrace/../../uts/common \
-D_KERNEL -DCTF_OLD_VERSIONS -D_ILP32 -DMODULE -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(dtrace)" \
-D"KBUILD_MODNAME=KBUILD_STR(dtracedrv)" -E $p/$1