File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,13 @@ endif
1313
1414# grab version from git, if possible
1515REVISION := $(shell git describe --abbrev=8 --dirty --always --tags)
16- ifneq ($(REVISION ) ,)
17- CFLAGS += -DZDB_REVISION=\"$(REVISION)\"
16+ ifeq ($(REVISION ) ,)
17+ REVISION := $(shell grep ZDB_VERSION libzdb.h | awk '{ print $$3 }' | sed s/'"'//g)
1818endif
1919
20+ # add revision to build
21+ CFLAGS += -DZDB_REVISION=\"$(REVISION ) \"
22+
2023ifeq ($(STATIC ) ,1)
2124 LDFLAGS += -static
2225endif
Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ endif
1313
1414# grab version from git, if possible
1515REVISION := $(shell git describe --abbrev=8 --dirty --always --tags)
16- ifneq ($(REVISION ) ,)
17- CFLAGS += -DZDBD_REVISION=\"$(REVISION)\"
16+ ifeq ($(REVISION ) ,)
17+ REVISION := $(shell grep ZDBD_VERSION zdbd.h | awk '{ print $$3 }' | sed s/'"'//g)
1818endif
1919
20+ CFLAGS += -DZDBD_REVISION=\"$(REVISION ) \"
21+
2022ifeq ($(STATIC ) ,1)
2123 LDFLAGS += -static
2224endif
You can’t perform that action at this time.
0 commit comments