Permalink
Browse files

Allow not stripping of binaries in recursor's make install

  • Loading branch information...
1 parent e9c2ad3 commit 79240f142f205578f637560380374a193b4e009f @zeha zeha committed Jun 1, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 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

0 comments on commit 79240f1

Please sign in to comment.