From d240fe0994b27b106e43a2ab6a4553f4540c885e Mon Sep 17 00:00:00 2001 From: Till Maas Date: Fri, 20 Aug 2010 10:44:13 +1200 Subject: [PATCH] Move stripping from install to LDFLAGS. This allows to easily build and install an unstripped binary, e.g. for Fedora where stripping is performed by the build system to store the removed information in a debuginfo subpackage. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bfd18fd..7145c26 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ CC = gcc INSTALL = /usr/bin/install PREFIX ?= /usr/local +LDFLAGS ?= -s ifdef WITHOUT_READLINE READLINE_CFLAGS = @@ -48,7 +49,7 @@ clean: install: mspdebug mspdebug.man mkdir -p $(DESTDIR)$(PREFIX)/bin mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 - $(INSTALL) -m 0755 -s mspdebug $(DESTDIR)$(PREFIX)/bin/mspdebug + $(INSTALL) -m 0755 mspdebug $(DESTDIR)$(PREFIX)/bin/mspdebug $(INSTALL) -m 0644 mspdebug.man $(DESTDIR)$(PREFIX)/share/man/man1/mspdebug.1 .SUFFIXES: .c .o