瀏覽代碼

microperl: strip target binary

Peter Korsgaard 16 年之前
父節點
當前提交
5b1dbd2031
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      package/microperl/microperl.mk

+ 4 - 1
package/microperl/microperl.mk

@@ -82,7 +82,10 @@ ifneq ($(MICROPERL_MODS),)
 	 done; \
 	)
 endif
-	cp -dpf $(MICROPERL_DIR)/microperl $(TARGET_DIR)/usr/bin/microperl
+	cp -dpf $(MICROPERL_DIR)/microperl $@
+ifneq ($(BR2_STRIP_none),y)
+	$(STRIPCMD) $(STRIP_STRIP_ALL) $@
+endif
 	(cd $(TARGET_DIR)/usr/bin; rm -f perl; ln -s microperl perl;)
 
 microperl: uclibc $(TARGET_DIR)/usr/bin/microperl