Skip to content

Commit

Permalink
add possibility to link the tool statically
Browse files Browse the repository at this point in the history
  • Loading branch information
fila43 committed Aug 24, 2023
1 parent d91fc7e commit 723db89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
all:db.cc convert_db.h convert.cc
g++ -Wall -Wextra convert.cc db.cc -llmdb -ldb -lgdbm -lgdbm_compat -o db_converter
static:db.cc convert_db.h convert.cc
g++ -Wall -Wextra convert.cc db.cc -llmdb -Wl,-Bstatic $(LDFLAGS) -ldb-5.3 -Wl,-Bdynamic -lgdbm -lgdbm_compat -o db_converter

clean:
rm -rf convert
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ requires: libdb-devel, gdbm-devel, lmdb-devel, g++, make
## Build
* Clone the repo
* Build the binary `make`
* For static linking of libdb use `make static`
## Usage
db\_converter --src SOURCE --dest DEST [ DBTYPE ]
* SOURCE - path to BerkeleyDB database
Expand Down

0 comments on commit 723db89

Please sign in to comment.