[openwrt/openwrt] argp-standalone: fix compilation with Alpine Linux

LEDE Commits lede-commits at lists.infradead.org
Wed Mar 16 12:55:21 PDT 2022


chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/80b88b083aa3c38ddd2efb89614c2c55dcaa3037

commit 80b88b083aa3c38ddd2efb89614c2c55dcaa3037
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Wed Mar 9 22:31:14 2022 -0800

    argp-standalone: fix compilation with Alpine Linux
    
    This package is a C89 one. Add the proper CFLAG to fix compilation.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 package/libs/argp-standalone/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/libs/argp-standalone/Makefile b/package/libs/argp-standalone/Makefile
index 21b154f29d..1a48dcb2cd 100644
--- a/package/libs/argp-standalone/Makefile
+++ b/package/libs/argp-standalone/Makefile
@@ -34,8 +34,10 @@ define Package/argp-standalone/description
 endef
 
 MAKE_FLAGS += \
-	CFLAGS="$(TARGET_CFLAGS) $(FPIC)"
+	CFLAGS="$(TARGET_CFLAGS) $(FPIC) -std=gnu89"
 
+HOST_MAKE_FLAGS += \
+	CFLAGS="$(HOST_CFLAGS) $(FPIC) -std=gnu89"
 
 define Build/InstallDev
 	$(INSTALL_DIR) $(1)/usr/include




More information about the lede-commits mailing list