Skip to content

Commit

Permalink
Merge pull request #249 from pingyu/fix-makefile-sqlite3
Browse files Browse the repository at this point in the history
build: fix makefile for libsqlite3
  • Loading branch information
dbsid authored Oct 8, 2022
2 parents 824de93 + a4230b6 commit 153fa28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FDB_CHECK := $(shell command -v fdbcli 2> /dev/null)
ROCKSDB_CHECK := $(shell echo "int main() { return 0; }" | gcc -lrocksdb -x c++ -o /dev/null - 2>/dev/null; echo $$?)
SQLITE_CHECK := $(shell echo "int main() { return 0; }" | gcc -lsqlite3 -o /dev/null - 2>/dev/null; echo $$?)
SQLITE_CHECK := $(shell echo "int main() { return 0; }" | gcc -lsqlite3 -x c++ -o /dev/null - 2>/dev/null; echo $$?)

TAGS =

ifdef FDB_CHECK
TAGS += foundationdb
endif

ifdef SQLITE_CHECK
ifeq ($(SQLITE_CHECK), 0)
TAGS += libsqlite3
endif

Expand Down

0 comments on commit 153fa28

Please sign in to comment.