toolchain-funcs.eclass: Add functions for detection of PIE / SSP in way compatible...
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Wed, 14 Jun 2017 14:23:15 +0000 (16:23 +0200)
committerMatthias Maier <tamiko@gentoo.org>
Fri, 16 Jun 2017 08:23:13 +0000 (03:23 -0500)
commitd20b5a7065950144775848c1401c4f61a44ecd43
tree787371704b41bbdb280850c57ed1c75123633705
parenta2a6324e0311b3f142b4cb733c3f8777af4f3fb1
toolchain-funcs.eclass: Add functions for detection of PIE / SSP in way compatible with GCC >=6.

Newly added tc-enables-pie(), tc-enables-ssp(), tc-enables-ssp-strong()
and tc-enables-ssp-all() check macros instead of specs.
This solution also works with older GCC and with Clang.

Signed-off-by: Matthias Maier <tamiko@gentoo.org>
eclass/toolchain-funcs.eclass