bird2: Add package
[feed/routing.git] / bird2 / patches / 0007-Fix-build-version.patch
1 diff --git a/Makefile.in b/Makefile.in
2 index c8168bb..eb6cc5c 100644
3 --- a/Makefile.in
4 +++ b/Makefile.in
5 @@ -21,11 +21,6 @@ INSTALL=@INSTALL@
6 INSTALL_PROGRAM=@INSTALL_PROGRAM@
7 INSTALL_DATA=@INSTALL_DATA@
8
9 -git-label:=$(strip $(shell git describe --always --dirty=-x 2>/dev/null))
10 -ifneq ($(git-label),)
11 - CFLAGS += -DGIT_LABEL="$(git-label)"
12 -endif
13 -
14 client=$(addprefix $(exedir)/,@CLIENT@)
15 daemon=$(exedir)/bird
16 protocols=@protocols@
17 @@ -42,6 +37,11 @@ srcdir := @srcdir@
18 objdir := @objdir@
19 exedir := @exedir@
20
21 +git-label:=$(strip $(shell cd $(srcdir) && [ "$$(git rev-parse --show-toplevel)" = "$$(readlink -f .)" ] && git describe --always --dirty=-x 2>/dev/null))
22 +ifneq ($(git-label),)
23 + CFLAGS += -DGIT_LABEL="$(git-label)"
24 +endif
25 +
26 ifeq ($(objdir),.)
27 objdir := $(realpath .)
28 endif