elfutils: fix build with GCC 12/13

This commit is contained in:
coolsnowwolf 2024-06-01 13:10:06 +08:00
parent 9042bd040a
commit 3d715feecc

View File

@ -83,6 +83,11 @@ CONFIGURE_VARS += \
TARGET_CFLAGS += -D_GNU_SOURCE -Wno-unused-result -Wno-format-nonliteral
ifneq ($(filter $(GCC_MAJOR_VERSION),12 13),)
TARGET_CFLAGS += \
-Wno-error=use-after-free
endif
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/