X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=package%2Fnetwork%2Futils%2Fiproute2%2FMakefile;fp=package%2Fnetwork%2Futils%2Fiproute2%2FMakefile;h=6e20e34dd83ba2fac05e1f57d50fa27fe433366c;hb=fc80ef3613465e60257a5ddf0674debe45b09180;hp=a9bcfd40a033ce6757b4f6e37ec61f06652220bb;hpb=26681fa6a6fcbec0024906eb8367e9a3160521fb;p=openwrt%2Fopenwrt.git diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile index a9bcfd40a0..6e20e34dd8 100644 --- a/package/network/utils/iproute2/Makefile +++ b/package/network/utils/iproute2/Makefile @@ -106,6 +106,7 @@ endif ifeq ($(BUILD_VARIANT),tc) HAVE_ELF:=y + SHARED_LIBS:=y endif ifdef CONFIG_PACKAGE_devlink @@ -127,7 +128,7 @@ TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny MAKE_FLAGS += \ KERNEL_INCLUDE="$(LINUX_DIR)/user_headers/include" \ - SHARED_LIBS="" \ + SHARED_LIBS=$(SHARED_LIBS) \ IP_CONFIG_TINY=$(IP_CONFIG_TINY) \ HAVE_ELF=$(HAVE_ELF) \ HAVE_MNL=$(HAVE_MNL) \ @@ -164,6 +165,10 @@ define Package/tc/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/tc/tc $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/etc/hotplug.d/iface $(INSTALL_BIN) ./files/15-teql $(1)/etc/hotplug.d/iface/ +ifeq ($(SHARED_LIBS),y) + $(INSTALL_DIR) $(1)/usr/lib/tc + $(CP) $(PKG_BUILD_DIR)/tc/*.so $(1)/usr/lib/tc +endif endef # ensure other packages are only saved during 'tiny' builds.