]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - scripts/Makefile.build
kbuild: sync with Linux 4.1
[karo-tx-uboot.git] / scripts / Makefile.build
index ac0554eeae170bd78ff9187ea54ad0f66ec88e52..de818aec8c50ee5ef45db3f501049e09d07a0751 100644 (file)
@@ -253,8 +253,9 @@ sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH
        "$(if $(part-of-module),1,0)" "$(@)";
 recordmcount_source := $(srctree)/scripts/recordmcount.pl
 endif
-cmd_record_mcount =                                            \
-       if [ "$(findstring -pg,$(_c_flags))" = "-pg" ]; then    \
+cmd_record_mcount =                                            \
+       if [ "$(findstring $(CC_FLAGS_FTRACE),$(_c_flags))" =   \
+            "$(CC_FLAGS_FTRACE)" ]; then                       \
                $(sub_cmd_record_mcount)                        \
        fi;
 endif