Explorar o código

microperl: strip target binary

Peter Korsgaard %!s(int64=16) %!d(string=hai) anos
pai
achega
5b1dbd2031
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      package/microperl/microperl.mk

+ 4 - 1
package/microperl/microperl.mk

@@ -82,7 +82,10 @@ ifneq ($(MICROPERL_MODS),)
 	 done; \
 	 done; \
 	)
 	)
 endif
 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;)
 	(cd $(TARGET_DIR)/usr/bin; rm -f perl; ln -s microperl perl;)
 
 
 microperl: uclibc $(TARGET_DIR)/usr/bin/microperl
 microperl: uclibc $(TARGET_DIR)/usr/bin/microperl