From 2ce0dfdc4167e9a564642927ac5f542ddcc4b1f2 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Tue, 3 Dec 2024 22:27:16 +0800 Subject: [PATCH] elfutils: fix build with gcc 8 --- package/libs/elfutils/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/libs/elfutils/Makefile b/package/libs/elfutils/Makefile index 10a83382b91b40..a32dd7046a9410 100644 --- a/package/libs/elfutils/Makefile +++ b/package/libs/elfutils/Makefile @@ -89,7 +89,7 @@ TARGET_CFLAGS += \ -Wno-unused-result \ -Wno-format-nonliteral -ifneq ($(CONFIG_GCC_USE_VERSION_11),y) +ifneq ($(filter $(GCC_MAJOR_VERSION),12 13),) TARGET_CFLAGS += \ -Wno-error=use-after-free endif