kvm: extboot: fix -fno-stack-protector usage
commit096b67c70f2643b2e8cea9ae821c3fbbf8c69f7d
authorChristian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Tue, 8 Jan 2008 16:56:37 +0000 (8 17:56 +0100)
committerAvi Kivity <avi@qumranet.com>
Tue, 8 Jan 2008 17:00:35 +0000 (8 19:00 +0200)
tree796de905bcf70ddd80a2628fd994420495dfd8fe
parent8b6d291748b03a15cf1ca4a007df7df2fd47fa90
kvm: extboot: fix -fno-stack-protector usage

Option -fno-stack-protector breaks kvm-userspace in environments without
stack-protector functionality. They fail with "unrecognized command line
option" when compiling extboot.
This patch removes the fix -fno-stack-protector option and replaces it
with a detection that only adds -fno-stack-protector if the option is
supported by the used gcc.
The detection code is copied from kernel sources scripts/Kbuild.include.

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
kvm/extboot/Makefile