Permalink
Browse files

Merge pull request #1443 from zeha/recursor-nostrip

Allow not stripping of binaries in recursor's make install
  • Loading branch information...
2 parents 5cdeede + 79240f1 commit 1d7f86309b0f32dc96a2654803c67c756ba0fb4c @Habbie Habbie committed Jun 3, 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
@@ -102,10 +103,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 1d7f863

Please sign in to comment.