[Buildroot] [PATCH 1/2] package/pciutils: requires C99

Baruch Siach baruch at tkos.co.il
Thu May 12 13:42:47 UTC 2022


Since version 3.8.0 pciutils requires C99 toolchain as documented in its
README file. Use the gnu99 variant because the code requires the GNU
extended getopt(3) and the 'asm' keyword.

Fixes:
http://autobuild.buildroot.net/results/1c9988105b64594185a4002ca046aec8b87ea141/

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 package/pciutils/pciutils.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/pciutils/pciutils.mk b/package/pciutils/pciutils.mk
index c1445968b91c..140276dbc47e 100644
--- a/package/pciutils/pciutils.mk
+++ b/package/pciutils/pciutils.mk
@@ -13,7 +13,7 @@ PCIUTILS_LICENSE_FILES = COPYING
 PCIUTILS_MAKE_OPTS = \
 	CROSS_COMPILE="$(TARGET_CROSS)" \
 	HOST="$(NORMALIZED_ARCH)-linux" \
-	OPT="$(TARGET_CFLAGS)" \
+	OPT="$(TARGET_CFLAGS) -std=gnu99" \
 	LDFLAGS="$(TARGET_LDFLAGS)" \
 	DNS=no \
 	STRIP=
-- 
2.35.1




More information about the buildroot mailing list