From f3c75e3562f2db1b0cbacea076f29fd431f70e01 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 7 Oct 2026 18:42:42 +0200 Subject: [PATCH] tools/elfutils: fix the build on macOS The DEFAULT_INCLUDES override adds -I. to the src directory. There, upstream deliberately clears DEFAULT_INCLUDES: with libc++, includes , which then resolves to the stack binary in src. Leave out -I. for the src directory. Signed-off-by: Felix Fietkau --- tools/elfutils/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/elfutils/Makefile b/tools/elfutils/Makefile index fb2afe9d83a..49c2526860a 100644 --- a/tools/elfutils/Makefile +++ b/tools/elfutils/Makefile @@ -71,7 +71,7 @@ export $(PKG_GNULIB_BASE)_xsize=$(HOST_BUILD_DIR)/$(PKG_GNULIB_BASE)/$(PKG_GNULI HOST_MAKE_FLAGS += \ am__CONFIG_DISTCLEAN_FILES= \ - DEFAULT_INCLUDES='-I. -I$$$$(top_builddir) -I$$$$(top_srcdir)/$(PKG_GNULIB_BASE)' \ + DEFAULT_INCLUDES='$$$$(if $$$$(findstring $(lastword $(PKG_SUBDIRS)),$$$$(subdir)),,-I.) -I$$$$(top_builddir) -I$$$$(top_srcdir)/$(PKG_GNULIB_BASE)' \ AM_LDFLAGS='$$$$(STACK_USAGE_NO_ERROR)' \ LIBS+='$$$$(if $$$$(findstring $(lastword $(PKG_SUBDIRS)),$$$$(subdir)), $$$$($(PKG_GNULIB_BASE)))' \ LIBS+='$$$$(wildcard $$$$($(PKG_GNULIB_BASE)_exitfail))' \