aboutsummaryrefslogtreecommitdiff
path: root/db2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'db2/Makefile')
-rw-r--r--db2/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/db2/Makefile b/db2/Makefile
index 594b802..35c67da 100644
--- a/db2/Makefile
+++ b/db2/Makefile
@@ -111,9 +111,11 @@ endif
# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
$(objpfx)libdb.so: $(common-objpfx)libc.so
+ifeq ($(build-static),yes)
subdir_install: $(inst_libdir)/libndbm.a
$(inst_libdir)/libndbm.a: $(inst_libdir)/libdb.a $(+force)
$(make-link)
+endif
ifeq ($(build-shared),yes)
subdir_install: $(inst_libdir)/libndbm.so