From af92c8113e65a3bdea68d30e02dbbc92cb426608 Mon Sep 17 00:00:00 2001 From: coolsnowwolf <31687149+coolsnowwolf@users.noreply.github.com> Date: Fri, 31 May 2024 11:38:38 +0800 Subject: [PATCH] inotify-tools: fix link error on x86 --- utils/inotify-tools/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/utils/inotify-tools/Makefile b/utils/inotify-tools/Makefile index 090f044d..a013825a 100644 --- a/utils/inotify-tools/Makefile +++ b/utils/inotify-tools/Makefile @@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=inotify-tools PKG_VERSION:=3.20.11.0 PKG_HASH:=58a3cde89e4a5111a87ac16b56b06a8f885460fca0aea51b69c856ce30a37a14 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_URL:=https://codeload.github.com/rvoicilas/inotify-tools/tar.gz/$(PKG_VERSION)? PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz @@ -19,6 +19,14 @@ include $(INCLUDE_DIR)/package.mk CONFIGURE_ARGS+= --disable-doxygen +ifneq ($(CONFIG_USE_MUSL),) + TARGET_CFLAGS += -D_LARGEFILE64_SOURCE +endif + +## Avoid linking with libstdcpp +TARGET_CXXFLAGS+= -nodefaultlibs -lc -fno-exceptions +TARGET_LDFLAGS+= $(if $(CONFIG_USE_MUSL),-lssp_nonshared) + define Build/Prepare $(call Build/Prepare/Default) $(CP) $(PKG_BUILD_DIR)/README.md $(PKG_BUILD_DIR)/README