tree: use TARGET_{CFLAGS,LDFLAGS} instead of the package default
authorToni Uhlig <matzeton@googlemail.com>
Fri, 2 Mar 2018 17:37:42 +0000 (18:37 +0100)
committerYousong Zhou <yszhou4tech@gmail.com>
Tue, 6 Mar 2018 03:50:15 +0000 (11:50 +0800)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
utils/tree/Makefile

index b7ff3d438a7d32fae417678dff4a196a726a2f6c..c6d5654b5dcbb3f856f8cf5056112576fdc9d153 100644 (file)
@@ -25,6 +25,10 @@ define Package/tree
   DEPENDS:=+libc +libgcc
 endef
 
+MAKE_FLAGS += \
+       CFLAGS="$(TARGET_CFLAGS)" \
+       LDFLAGS="$(TARGET_LDFLAGS)"
+
 define Package/tree/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/tree $(1)/usr/sbin/