Skip to content

Commit 8a27f51

Browse files
author
Yongwoo Lee
committed
fix: select goleveldb when options libsecp256k1 only
When LBM_BUILD_OPTIONS has no DB options and only has libsecp256k1, goleveldb will be selected by default. The previous commit has a bug for that.
1 parent 86eea35 commit 8a27f51

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Makefile

+8-6
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ ifeq ($(LEDGER_ENABLED),true)
4141
endif
4242
endif
4343

44-
# DB backend and secp256k1 implementation selection
45-
ifeq (,$(filter $(LBM_BUILD_OPTIONS), cleveldb rocksdb boltdb badgerdb libsecp256k1))
44+
# DB backend selection
45+
ifeq (,$(filter $(LBM_BUILD_OPTIONS), cleveldb rocksdb boltdb badgerdb))
4646
BUILD_TAGS += goleveldb
4747
DB_BACKEND = goleveldb
4848
else
@@ -64,10 +64,12 @@ else
6464
BUILD_TAGS += boltdb
6565
DB_BACKEND = boltdb
6666
endif
67-
ifeq (libsecp256k1,$(findstring libsecp256k1,$(LBM_BUILD_OPTIONS)))
68-
CGO_ENABLED=1
69-
BUILD_TAGS += libsecp256k1
70-
endif
67+
endif
68+
69+
# secp256k1 implementation selection
70+
ifeq (libsecp256k1,$(findstring libsecp256k1,$(LBM_BUILD_OPTIONS)))
71+
CGO_ENABLED=1
72+
BUILD_TAGS += libsecp256k1
7173
endif
7274

7375
build_tags += $(BUILD_TAGS)

0 commit comments

Comments
 (0)