Comment 21 for bug 53953

Revision history for this message
damagedspline (icpazi) wrote :

mmmm... weird it compiles ok here after the removal of the CFLAGS line.

i even added it to an installation script which is intended for some fujitsu laptops...

relevant part of the script:
<code>
if [ ! -e acerhk-current.tgz ]; then
            if ! wget -q http://freshmeat.net/redir/acerhk/30497/url_tgz/acerhk-current.tgz; then
             printMessage "Error: Unable to download acerhk source code"
             exit 1
            fi
            printMessage "AcerHK source code downloaded successfully"
           fi
           tar xzf acerhk-current.tgz
           if ! cd acerhk-0.5.35; then
            printMessage "Error: Something wrong with downloaded AcerHK, try manual download of acerhk 0.5.35 and place it under /usr/src/fsca16xx/"
            exit 1
           fi
           #if ! wget -q http://fscamiloa16xx.googlecode.com/files/acerhk-0.5.35-FSC-AMILO_A16xx.patch; then
    # printMessage "Error: Unable to retrieve acerhk patch"
           #fi
           #printMessage "Patching AcerHK"
           #patch -i acerhk-0.5.35-FSC-AMILO_A16xx.patch acerhk.c
           printMessage "Installing required kernel module building tools - this may take a while..."
           if ! installPackagesIfNeeded build-essential linux-headers-generic ; then
            return 1
           fi
                                printMessage "Compiling AcerHK"
    if [ "Hardy" = $LINUX_VER ]; then
     #in kernel 2.6.24 - CFLAGS will fail the compilation
     grep -v "CFLAGS+=" Makefile > Makefile.fsc
     mv Makefile.fsc Makefile
    fi
           if make > ../compile.log ; then
           printMessage "Compile ended successfully!"
            mv acerhk.ko ../
            cd ..
           else
                                        cd ..
            printMessage "Error: AcerHK compile failed, compile log can be found at $(pwd)/compile.log"
           fi
</code>