View Single Post
Old 05-27-11, 01:51 PM   #7
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

Alternatively, you can make this change in the driver's conftest.sh script:
@@ -76,7 +76,7 @@
}

build_cflags() {
- BASE_CFLAGS="-D__KERNEL__ \
+ BASE_CFLAGS="-O2 -D__KERNEL__ \
-DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
-nostdinc -isystem $ISYSTEM"
zander is offline   Reply With Quote