tpm2-abrmd: fix build with BR2_FORTIFY_SOURCE_1
authorPeter Korsgaard <peter@korsgaard.com>
Tue, 15 Jan 2019 10:15:20 +0000 (11:15 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 16 Jan 2019 13:25:05 +0000 (14:25 +0100)
commit8286be28913ef3b93c6edacec15a01d7b23b1566
tree29c0efe7479b620497b5a2557f184fe62ab205f0
parentdb828b919214db5cc2cbce644a75db3e3d4f74d6
tpm2-abrmd: fix build with BR2_FORTIFY_SOURCE_1

The configure script passes -U FORTIFY_SOURCE -D FORTIFY_SOURCE=2 by
default, which conflicts with BR2_FORTIFY_SOURCE_1 as -Werror is used:

<cross>-gcc ..  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 .. -D_FORTIFY_SOURCE=1
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]

Disable this so the FORTIFY_SOURCE flags in TARGET_CFLAGS (if any) is used
instead.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/tpm2-abrmd/tpm2-abrmd.mk