summaryrefslogtreecommitdiff
path: root/db/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'db/Makefile')
-rw-r--r--db/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/db/Makefile b/db/Makefile
index 9613c2e370..37dc282893 100644
--- a/db/Makefile
+++ b/db/Makefile
@@ -39,4 +39,8 @@ CFLAGS-hash_func.c := -Wno-unused
# The db code outsmarts the compiler frequently.
override CFLAGS += -Wno-uninitialized
-LDLIBS-makedb := db/libdb
+ifeq ($(build_shared),yes)
+$(objpfx)makedb: $(objpfx)libdb.so$(libdb.so-version)
+else
+$(objpfx)makedb: $(objpfx)libdb.a
+endif