X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/08fd6bda6451b3dff2cd82cfde6f5393a1018dd5..9e6c87a6dbf73d870d6a44a31ea11183a90427c4:/package/robocfg/Makefile

diff --git a/package/robocfg/Makefile b/package/robocfg/Makefile
index bc68f8905..6f511c043 100644
--- a/package/robocfg/Makefile
+++ b/package/robocfg/Makefile
@@ -17,11 +17,11 @@ $(PKG_BUILD_DIR)/.prepared:
 	touch $@
 
 $(PKG_BUILD_DIR)/.built:
-	$(TARGET_CC) -o $(PKG_BUILD_DIR)/robocfg robocfg.c
-	$(STRIP) $(PKG_BUILD_DIR)/robocfg
+	$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/robocfg robocfg.c
 	touch $@
 
 $(IPKG_ROBOCFG):
-	mkdir -p $(IDIR_ROBOCFG)/sbin
-	install -m 0755 $(PKG_BUILD_DIR)/robocfg $(IDIR_ROBOCFG)/sbin/robocfg
+	install -d -m0755 $(IDIR_ROBOCFG)/sbin
+	install -m0755 $(PKG_BUILD_DIR)/robocfg $(IDIR_ROBOCFG)/sbin/
+	$(RSTRIP) $(IDIR_ROBOCFG)
 	$(IPKG_BUILD) $(IDIR_ROBOCFG) $(PACKAGE_DIR)