argp-standalone: fix compilation with Alpine Linux
authorRosen Penev <rosenp@gmail.com>
Thu, 10 Mar 2022 06:31:14 +0000 (22:31 -0800)
committerChristian Lamparter <chunkeey@gmail.com>
Wed, 16 Mar 2022 16:58:24 +0000 (17:58 +0100)
This package is a C89 one. Add the proper CFLAG to fix compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
package/libs/argp-standalone/Makefile

index 21b154f29d8e3fa14cde9f44afdca4a8a62aa48e..1a48dcb2cd72696b6547b2ff945de81961989ccc 100644 (file)
@@ -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