libtasn1: fix host build under old GCC

prereq-build.mk says that GCC 4.8 and above is supported. GCC 4.8
defaults to std=gnu89, breaking the build. GCC5 defaults to gnu99.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-05-23 21:11:46 -07:00
parent f50e2bde1d
commit 6d100823e9
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ define Package/libtasn1/description
Distinguish Encoding Rules (DER) manipulation.
endef
HOST_CFLAGS += -std=gnu99
TARGET_CFLAGS += -ffunction-sections -fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections