tpm2-tss: fix build with BR2_FORTIFY_SOURCE_1
authorPeter Korsgaard <peter@korsgaard.com>
Tue, 15 Jan 2019 10:15:17 +0000 (11:15 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 16 Jan 2019 13:24:37 +0000 (14:24 +0100)
commit223c4fb704aa187991eb082141536e52499a5428
tree99935b70e10ccf044d6e9006abb86a0d3fc1a158
parentd38bcb9de572ec285bfb67f5a806a55e98a44e13
tpm2-tss: 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-tss/tpm2-tss.mk