From: Christian Hofstaedtler Date: Sun, 1 Jun 2014 15:12:41 +0000 (+0200) Subject: Allow not stripping of binaries in recursor's make install X-Git-Tag: rec-3.6.0~19^2~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79240f142f205578f637560380374a193b4e009f;p=thirdparty%2Fpdns.git Allow not stripping of binaries in recursor's make install --- diff --git a/pdns/Makefile-recursor b/pdns/Makefile-recursor index 300ff71ee1..ca21ef86ca 100644 --- a/pdns/Makefile-recursor +++ b/pdns/Makefile-recursor @@ -7,6 +7,7 @@ OPTFLAGS?=-O3 CXXFLAGS:= $(CXXFLAGS) -Iext/rapidjson/include -I$(CURDIR)/ext/polarssl-1.3.2/include -Wall $(OPTFLAGS) $(PROFILEFLAGS) $(ARCHFLAGS) -pthread -Iext/yahttp CFLAGS:=$(CFLAGS) -Wall $(OPTFLAGS) $(PROFILEFLAGS) $(ARCHFLAGS) -I$(CURDIR)/ext/polarssl-1.3.2/include -pthread LDFLAGS:=$(LDFLAGS) $(ARCHFLAGS) -pthread +STRIP_BINARIES?=1 LINKCC=$(CXX) CC?=gcc @@ -96,10 +97,14 @@ basic_checks: install: build-stamp -mkdir -p $(DESTDIR)/$(SBINDIR) mv pdns_recursor $(DESTDIR)/$(SBINDIR) +ifeq ($(STRIP_BINARIES), 1) strip $(DESTDIR)/$(SBINDIR)/pdns_recursor +endif mkdir -p $(DESTDIR)/$(BINDIR) mv rec_control $(DESTDIR)/$(BINDIR) +ifeq ($(STRIP_BINARIES), 1) strip $(DESTDIR)/$(BINDIR)/rec_control +endif -mkdir -p $(DESTDIR)/$(SYSCONFDIR) $(DESTDIR)/$(SBINDIR)/pdns_recursor --config > $(DESTDIR)/$(SYSCONFDIR)/recursor.conf-dist -mkdir -p $(DESTDIR)/usr/share/man/man1