tools/thermal: tmon: use "-fstack-protector" only if supported
authorMarkus Mayer <mmayer@broadcom.com>
Wed, 27 Sep 2017 23:02:35 +0000 (16:02 -0700)
committerZhang Rui <rui.zhang@intel.com>
Wed, 18 Oct 2017 01:59:30 +0000 (09:59 +0800)
commitec04aa3ae87b895dbc674a7e0b78b670f73a2c22
tree5419a5b18517b3d2721b77c42e0d177f85376835
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
tools/thermal: tmon: use "-fstack-protector" only if supported

Most, but not all, toolchains support the "-fstack-protector" flag. We
check if the compiler supports the flag before using it. This allows
tmon to be compiled for more environments.

Signed-off-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
tools/thermal/tmon/Makefile