The 003-skip-tests.patch file was malformed and causing build failures with "Only garbage was found in the patch input" error. Removed the patch as it's not needed - the build succeeds without it since we already use --with-only-libndpi configure flag. Added 002-fix-ndpi-example-linking.patch to properly link ndpi examples with correct library order. Build verified: netifyd_5.2.1-r1_aarch64_cortex-a72.ipk (1.2M) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
21 lines
716 B
Diff
21 lines
716 B
Diff
--- a/libs/ndpi/example/Makefile.in
|
|
+++ b/libs/ndpi/example/Makefile.in
|
|
@@ -48,6 +48,8 @@
|
|
|
|
CFLAGS+=-pthread
|
|
|
|
+LIBS_NO_NDPI := $(filter-out $(LIBNDPI),$(LIBS))
|
|
+
|
|
all: ndpiReader$(EXE_SUFFIX) @DPDK_TARGET@
|
|
|
|
EXECUTABLE_SOURCES := ndpiReader.c ndpiSimpleIntegration.c
|
|
@@ -57,7 +59,7 @@
|
|
$(AR) rsv libndpiReader.a $(COMMON_SOURCES:%.c=%.o)
|
|
|
|
ndpiReader$(EXE_SUFFIX): libndpiReader.a $(LIBNDPI) ndpiReader.o
|
|
- $(CC) $(CFLAGS) $(LDFLAGS) ndpiReader.o libndpiReader.a $(LIBS) -o $@
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) ndpiReader.o -Wl,--start-group libndpiReader.a $(LIBNDPI) -Wl,--end-group $(LIBS_NO_NDPI) -o $@
|
|
|
|
ndpiSimpleIntegration$(EXE_SUFFIX): ndpiSimpleIntegration.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|