From: Rosen Penev Date: Sun, 24 May 2020 04:11:46 +0000 (-0700) Subject: libtasn1: fix host build under old GCC X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b4cf130cbab332f9f9dce55cc0eabac823f345cd;p=feed%2Fpackages.git 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 (cherry picked from commit 6d100823e975da012210213c6c29f7f4b3e1123c) --- diff --git a/libs/libtasn1/Makefile b/libs/libtasn1/Makefile index 7a7d3d7439..2da74e67f5 100644 --- a/libs/libtasn1/Makefile +++ b/libs/libtasn1/Makefile @@ -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