cpp/examples/MinOZW/Makefile contains this rule: LIBS = $(wildcard $(LIBDIR)/*.so $(LIBDIR)/*.dylib $(top_builddir)/*.so $(top_builddir)/*.dylib $(top_builddir)/cpp/build/*.so $(top_builddir)/cpp/build/*.dylib ) LIBSDIR = $(abspath $(dir $(firstword $(LIBS)))) with LIBDIR not being defined anywhere we end up picking up host libraries. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>lilik-openwrt-22.03