Skip to content

Commit 06c0687

Browse files
author
Alessio Treglia
authored
Makefile: fix db-specific ldflags (#7554)
Closes: #7534
1 parent 58eabcb commit 06c0687

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ endif
7070
ifeq (rocksdb,$(findstring rocksdb,$(COSMOS_BUILD_OPTIONS)))
7171
CGO_ENABLED=1
7272
BUILD_TAGS += rocksdb
73+
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=rocksdb
7374
endif
7475
# handle boltdb
7576
ifeq (boltdb,$(findstring boltdb,$(COSMOS_BUILD_OPTIONS)))
7677
BUILD_TAGS += boltdb
78+
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=boltdb
7779
endif
7880

7981
ifeq (,$(findstring nostrip,$(COSMOS_BUILD_OPTIONS)))

0 commit comments

Comments
 (0)