acl: make sure build picks up TARGET_CFLAGS
authorArnout Vandecappelle <arnout@mind.be>
Fri, 17 Mar 2017 16:06:14 +0000 (17:06 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 18 Mar 2017 13:09:32 +0000 (14:09 +0100)
commit99c9b0affde4fcc3270425319b98a0e5e32f5964
tree2c302b09f1272ef2274c0b33171808bc4ef300f2
parent2530fe810ee7ece8da30e246af522e2e0be8e83f
acl: make sure build picks up TARGET_CFLAGS

The acl build system doesn't use automake, therefore it is broken. It
doesn't use the CFLAGS passed by configure. Work around this by passing
CFLAGS in the environment. The makefiles append to CFLAGS, so this
works.

This issue hasn't led to build failures, but it is visible e.g. when
stack protector is enabled: the stack protector options are not applied
to acl. Also debug and optimisation options aren't applied.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/acl/acl.mk