aboutsummaryrefslogtreecommitdiff
path: root/nss/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-01-02 04:20:21 +0000
committerUlrich Drepper <drepper@redhat.com>2000-01-02 04:20:21 +0000
commit9a6450d578556c11e7c173d2f28362345b8f1258 (patch)
tree327614f7bd913eb2de638df4001e533e933ee691 /nss/Makefile
parenta673fbcb1f42cd17f54ddeab03e85716ccf15c51 (diff)
downloadglibc-9a6450d578556c11e7c173d2f28362345b8f1258.zip
glibc-9a6450d578556c11e7c173d2f28362345b8f1258.tar.gz
glibc-9a6450d578556c11e7c173d2f28362345b8f1258.tar.bz2
Update.
* nss/nss_db/db-XXX.c: Move internal_setent and internal_endent functions from here... * nss/db-alias.c: ...and here... * nss/db-netgrp.c: ...and here... * nss/nss_db/db-open.c: ...to here. New file. * nss/nss_db/dummy-db.h: New file. * nss/nss_db/nss_db.h: New file. * nss/Depend: Depend in dlfcn, not db2. * nss/Makefile (libnss_db-routines): Add db-open. (distribute): Add nss_db.h dummy-db.h. (libnss_db.so): Replace libdb dependency by $(libdl). Based on a patch by Zack Weinberg.
Diffstat (limited to 'nss/Makefile')
-rw-r--r--nss/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/nss/Makefile b/nss/Makefile
index 5615930..685047f 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
@@ -65,10 +65,11 @@ libnss_files-routines := $(addprefix files-,$(databases))
distribute += files-XXX.c files-parse.c
libnss_db-routines := $(addprefix db-,$(filter-out hosts network key,\
- $(databases)))
+ $(databases))) \
+ db-open
generated += $(filter-out db-alias.c db-netgrp.c, \
$(addsuffix .c,$(libnss_db-routines)))
-distribute += db-XXX.c
+distribute += db-XXX.c nss_db.h dummy-db.h
# Build static module if requested
@@ -80,7 +81,7 @@ libnss_db-inhibit-o = $(filter-out .os,$(object-suffixes))
include ../Rules
-$(objpfx)libnss_db.so: $(dbobjdir)/libdb.so $(objpfx)libnss_files.so
+$(objpfx)libnss_db.so: $(objpfx)libnss_files.so $(libdl)
$(libnss_db-routines:%=$(objpfx)%.c): $(objpfx)db-%.c: nss_files/files-%.c
@rm -f $@.new