acerhk – gcc: -pg and -fomit-frame-pointer are incompatible

If you have problems compiling acerhk on the latest ubuntu distribution modify
/usr/src/`uname -r`/Makefile and comment :

ifdef CONFIG_FUNCTION_TRACER
#KBUILD_CFLAGS<->+= -pg
endif

Remove the comment after the successful compile so you leave the sources as they were.

One thought on “acerhk – gcc: -pg and -fomit-frame-pointer are incompatible

  1. Oh, I was waiting for this since Ubuntu 10.04 was released!
    It worked perfectly on my Acer TravelMate 2700 and now I can use:
    echo 0 > /proc/driver/acerhk/wirelessled
    echo 1 > /proc/driver/acerhk/wirelessled
    … to turn off or on the wireless led button light.
    THANK YOU, THANK YOU, THANK YOU!!!

Leave a Reply

Your email address will not be published. Required fields are marked *