]> Zhao Yanbai Git Server - minix.git/commitdiff
Restore stripping of elf binaries in ramdisk
authorArun Thomas <arun@minix3.org>
Tue, 28 Jun 2011 15:49:45 +0000 (17:49 +0200)
committerArun Thomas <arun@minix3.org>
Tue, 28 Jun 2011 15:49:45 +0000 (17:49 +0200)
drivers/ramdisk/Makefile

index f7f7ea6245020e687564fc6ef86abb7fdb2e196f..9f576cb368d27f661f675c1794732633c8c480f3 100644 (file)
@@ -11,9 +11,7 @@ SCRIPTS=newroot
 PROGRAMS += acpi
 .endif
 
-.if ${OBJECT_FMT} == "ELF"
-ELFSTRIP=/usr/gnu_cross/bin/i386-pc-minix3-strip
-.else
+.if ${OBJECT_FMT} == "a.out"
 STRIPFLAG+= -s
 .endif
 
@@ -152,13 +150,13 @@ rs.single: ../../etc/rs.single
 proto.gen: $(PROGRAMS) $(SCRIPTS) $(MAKEDEV) proto.sh proto
        sh -e proto.sh >proto.gen
 
-#.if ${OBJECT_FMT} == "ELF"
-#proto.gen: elfstrip
-#
-#.PHONY: elfstrip
-#
-#elfstrip: $(PROGRAMS)
-#      ${ELFSTRIP} $(PROGRAMS)
-#.endif
+.if ${OBJECT_FMT} == "ELF"
+proto.gen: elfstrip
+
+.PHONY: elfstrip
+
+elfstrip: $(PROGRAMS)
+       strip $(PROGRAMS)
+.endif
 
 .include <bsd.prog.mk>