package/Makefile.in: Do not use CPPFLAGS for hardening options
authorStefan Sørensen <stefan.sorensen@spectralink.com>
Wed, 11 Jul 2018 14:31:08 +0000 (09:31 -0500)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 10 Aug 2018 20:30:42 +0000 (22:30 +0200)
commitd4f5801027f3329fb6c2cd096f3396d3cd067390
tree513e07bbae68a90eafc7883a546637f41bc3c8b1
parentb5cb6b99ec7d0c7b38332c6f83b21e7e492680e3
package/Makefile.in: Do not use CPPFLAGS for hardening options

The hardening options are compiler flags, not pure pre-processor flags, so
put them in CFLAGS, not CPPFLAGS.

This fixes build errors where -D_FORTIFY_SOURCE=2 whas put in CPPFLAGS and
then applied to configure tests which could fail since the required -O2 is
only in CFLAGS.

Originally submitted as
http://patchwork.ozlabs.org/patch/904057/

Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/Makefile.in