summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils/strip/Makefile
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-03-06 00:28:04 +0000
committerjdp <jdp@FreeBSD.org>1998-03-06 00:28:04 +0000
commit9fa81114e9d99a8c0a42a254db45bf92a317e1d8 (patch)
tree7df6a44bb532c990b12a863e9ea360b878d0a095 /gnu/usr.bin/binutils/strip/Makefile
parent536dbcff68f5f7b351636ee5c82e28c934b07fb9 (diff)
downloadFreeBSD-src-9fa81114e9d99a8c0a42a254db45bf92a317e1d8.zip
FreeBSD-src-9fa81114e9d99a8c0a42a254db45bf92a317e1d8.tar.gz
Fix the broken installation of strip. It tried to use the installed
strip program (via "install") to strip itself. But the program wasn't executable because "install" hadn't made it so yet. I borrowed the method used for the old strip to get around this.
Diffstat (limited to 'gnu/usr.bin/binutils/strip/Makefile')
-rw-r--r--gnu/usr.bin/binutils/strip/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/strip/Makefile b/gnu/usr.bin/binutils/strip/Makefile
index 7072e11..61082ee 100644
--- a/gnu/usr.bin/binutils/strip/Makefile
+++ b/gnu/usr.bin/binutils/strip/Makefile
@@ -1,5 +1,5 @@
#
-# $Id$
+# $Id: Makefile,v 1.1.1.1 1998/03/01 23:41:17 jdp Exp $
#
.include "../Makefile.inc0"
@@ -12,5 +12,20 @@ CFLAGS+= -I${SRCDIR}/binutils
LDADD+= -L${RELTOP}/libbinutils -lbinutils
LDADD+= -L${RELTOP}/libbfd -lbfd
LDADD+= -L${RELTOP}/libiberty -liberty
+CLEANFILES+= maybe_stripped
+
+all: maybe_stripped
+
+maybe_stripped: strip
+ cp strip maybe_stripped
+.if defined(STRIP)
+.if ${STRIP:M-s} != ""
+ strip maybe_stripped
+.endif
+.endif
+
+realinstall:
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ maybe_stripped ${DESTDIR}${BINDIR}/strip
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud