--- a/ip/Makefile +++ b/ip/Makefile @@ -16,6 +16,13 @@ RTMONOBJ=rtmon.o include ../config.mk +STATIC_SYM_FILTER:= +ifeq ($(IP_CONFIG_TINY),y) + STATIC_SYM_FILTER:=iplink_can.c iplink_ipoib.c iplink_vxlan.c + CFLAGS += -DIPROUTE2_TINY +endif +STATIC_SYM_SOURCES:=$(filter-out $(STATIC_SYM_FILTER),$(wildcard *.c)) + ALLOBJ=$(IPOBJ) $(RTMONOBJ) SCRIPTS=ifcfg rtpr routel routef TARGETS=ip rtmon @@ -45,7 +52,7 @@ else ip: static-syms.o static-syms.o: static-syms.h -static-syms.h: $(wildcard *.c) +static-syms.h: $(STATIC_SYM_SOURCES) files="$^" ; \ for s in `grep -B 3 '\