umbim: fixes build with gcc 11 (#10163)

Fixes: https://github.com/coolsnowwolf/lede/issues/10126
This commit is contained in:
zhangguanzhang 2022-09-21 13:10:23 +08:00 committed by GitHub
parent a7a5b42f8a
commit ac7d6a4778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=umbim PKG_NAME:=umbim
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/umbim.git PKG_SOURCE_URL=$(PROJECT_GIT)/project/umbim.git
@ -34,7 +34,7 @@ define Package/umbim/description
endef endef
TARGET_CFLAGS += \ TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections -Wno-address-of-packed-member
TARGET_LDFLAGS += -Wl,--gc-sections TARGET_LDFLAGS += -Wl,--gc-sections