From 5f06907f917583aca184557e5933f29276943bc6 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Tue, 31 May 2022 01:31:11 +0800 Subject: [PATCH] qos-gargoyle: fix missing ldflags Signed-off-by: Tianling Shen --- package/emortal/qos-gargoyle/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package/emortal/qos-gargoyle/Makefile b/package/emortal/qos-gargoyle/Makefile index 11f3796f72..91267a1ef5 100644 --- a/package/emortal/qos-gargoyle/Makefile +++ b/package/emortal/qos-gargoyle/Makefile @@ -24,6 +24,8 @@ endef define Build/Configure endef +TARGET_LDFLAGS+= -lmnl + define Build/Compile -$(MAKE) -C $(PKG_BUILD_DIR) clean $(MAKE) -C $(PKG_BUILD_DIR) \ @@ -48,9 +50,11 @@ define Package/qos-gargoyle/install endef define Package/qos-gargoyle/prerm - $${IPKG_INSTROOT}/etc/init.d/qos_gargoyle stop 2>/dev/null - $${IPKG_INSTROOT}/etc/init.d/qos_gargoyle disable 2>/dev/null - ls >/dev/null 2>&1 +[ -n $${PKG_INSTROOT} ] || { + /etc/init.d/qos_gargoyle stop 2>/dev/null + /etc/init.d/qos_gargoyle disable 2>/dev/null + exit 0 +} endef $(eval $(call BuildPackage,qos-gargoyle))