Skip to content

Commit

Permalink
libtasn1: fix host build under old GCC
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
neheb committed May 25, 2020
1 parent f50e2bd commit 6d10082
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/libtasn1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6d10082

Please sign in to comment.