From 8767d321ad5f9620de0ead7b2970248dafab229a Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Fri, 10 May 2013 17:41:11 +0200 Subject: [PATCH] fix Makefile-recursor so it doesn't ignore LDFLAGS and others --- pdns/Makefile-recursor | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/pdns/Makefile-recursor b/pdns/Makefile-recursor index 0eeb26790d..23af429be2 100644 --- a/pdns/Makefile-recursor +++ b/pdns/Makefile-recursor @@ -28,19 +28,6 @@ REC_CONTROL_OBJECTS=rec_channel.o rec_control.o arguments.o misc.o \ # what we need all: message version_generated.h pdns_recursor rec_control -# Version -build_date=$(shell LC_TIME=C date '+%Y%m%d%H%M%S') -build_host=$(shell id -u -n)@$(shell hostname -f) -.PHONY: version_generated.h -version_generated.h: - echo '#ifndef VERSION_GENERATED_H' > $@ - echo '#define VERSION_GENERATED_H' >> $@ - echo '#include "config.h"' >> $@ - echo '#define PDNS_VERSION VERSION' >> $@ - echo '#define BUILD_DATE "$(build_date)"' >> $@ - echo '#define BUILD_HOST "$(build_host)"' >> $@ - echo '#endif //!VERSION_GENERATED_H' >> $@ - # OS specific instructions -include sysdeps/$(shell uname).inc @@ -66,6 +53,20 @@ endif LDFLAGS += $(PROFILEFLAGS) $(STATICFLAGS) +# Version +build_date=$(shell LC_TIME=C date '+%Y%m%d%H%M%S') +build_host=$(shell id -u -n)@$(shell hostname -f) + +.PHONY: version_generated.h +version_generated.h: + echo '#ifndef VERSION_GENERATED_H' > $@ + echo '#define VERSION_GENERATED_H' >> $@ + echo '#include "config.h"' >> $@ + echo '#define PDNS_VERSION VERSION' >> $@ + echo '#define BUILD_DATE "$(build_date)"' >> $@ + echo '#define BUILD_HOST "$(build_host)"' >> $@ + echo '#endif //!VERSION_GENERATED_H' >> $@ + message: @echo @echo PLEASE READ: If you get an error mentioning \#include '', please read README -- 2.47.2