X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=tools%2Fpower%2Fcpupower%2FMakefile;h=cf397bd26d0c64bdb51f636987d62f7a3bc2c381;hb=0588f1f934791b79d0a1e9b327be9b6eb361d2b8;hp=a93e06cfcc2a2f6218a7e7a4397510efa20fc2a3;hpb=b3d07e0344ea36dd3f3a2fdbfaab883e1c5ca69e;p=~andy%2Flinux diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile index a93e06cfcc2..cf397bd26d0 100644 --- a/tools/power/cpupower/Makefile +++ b/tools/power/cpupower/Makefile @@ -111,7 +111,7 @@ GMO_FILES = ${shell for HLANG in ${LANGUAGES}; do echo $(OUTPUT)po/$$HLANG.gmo; export CROSS CC AR STRIP RANLIB CFLAGS LDFLAGS LIB_OBJS # check if compiler option is supported -cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; fi;} +cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -x c /dev/null > /dev/null 2>&1; then echo "$(1)"; fi;} # use '-Os' optimization if available, else use -O2 OPTIMIZATION := $(call cc-supports,-Os,-O2)