From: Arun Thomas Date: Tue, 28 Jun 2011 15:49:45 +0000 (+0200) Subject: Restore stripping of elf binaries in ramdisk X-Git-Tag: v3.2.0~513 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch10.html?a=commitdiff_plain;h=cf04da3ebef9958c09004c9c6570de3e03db0cd3;p=minix.git Restore stripping of elf binaries in ramdisk --- diff --git a/drivers/ramdisk/Makefile b/drivers/ramdisk/Makefile index f7f7ea624..9f576cb36 100644 --- a/drivers/ramdisk/Makefile +++ b/drivers/ramdisk/Makefile @@ -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